いくつかのセルにデータを入力する UITable ビューがあります。
セルのいくつかは、回転するイメージを持っています。アニメーションを使用して画像を回転させます。
[image.layer removeAllAnimations];
CABasicAnimation* rotationAnimation;
rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
rotationAnimation.duration = 1.0;
rotationAnimation.toValue = [NSNumber numberWithFloat: M_PI * 2.0 * 1.0 * rotationAnimation.duration ];
rotationAnimation.cumulative = YES;
rotationAnimation.repeatCount = HUGE_VALF;
[image.layer addAnimation:rotationAnimation forKey:nil];
何らかの理由で、すべての画像にアニメーションがあるわけではありません。テーブルのスクロールを開始すると、一部のアニメーションが削除/無効になっているようです。
何らかの理由で