I'm currently using the following animation on a UITableViewCell
:
CATransform3D rotationTransform = CATransform3DMakeRotation(1.0f * M_PI, 0, 0, 1.0);
CABasicAnimation* rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform"];
rotationAnimation.toValue = [NSValue valueWithCATransform3D:rotationTransform];
rotationAnimation.duration = 0.25f;
rotationAnimation.cumulative = YES;
rotationAnimation.repeatCount = 1;
[cell.rotatingImage.layer addAnimation:rotationAnimation forKey:@"rotationAnimation"];
However, when ~3 cells are animated as above the animations become very laggy. Is there any way I can reduce this lag?