CABasicAnimation как упростить

В настоящее время я использую следующую анимацию в 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"];

Однако, когда анимируются ~3 ячейки, как указано выше, анимация становится очень лаговой. Можно ли как-то уменьшить это отставание?

6
задан kevboh 14 May 2012 в 21:55
поделиться