Hi, i'm rotating an image using CABasicAnimation but seems it's not working in iOS 4.1.I've got all the code working in iOS 3.1. Here's my code:
CABasicAnimation *fullRotation;
fullRotation = [CABasicAnimation animationWithKeyPath:@"transform.rotation"];
fullRotation.fromValue = [NSNumber numberWithFloat:0];
fullRotation.toValue = [NSNumber numberWithFloat:(2*M_PI)];
fullRotation.duration = 0.5;
fullRotation.repeatCount = 2;
[imageView.layer addAnimation:fullRotation forKey:@"jolly"];
Anyone else facing same issue ? Anybody has an idea?
Thanx.