タッチを使用してホイールをアニメーション化するのに問題があります。thouchsMoveを使用してスムーズな動きを実現するために、持続時間、スピン時間、アニメーション持続時間のさまざまな数値をパンチすることに時間を費やしましたが、タッチが発生するたびにホイールが回転し、元の位置にジャンプして戻るように見えます。誰かがこれに光を当てることができれば、私はそれを非常に感謝します。
CABasicAnimation* rotationAnimation;
rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
rotationAnimation.fillMode = kCAFillModeForwards;
rotationAnimation.removedOnCompletion = NO;
rotationAnimation.delegate = self;
rotationAnimation.toValue = [NSNumber numberWithFloat: 2 * 1 * 45 ];
rotationAnimation.duration = 2;
rotationAnimation.cumulative = YES;
rotationAnimation.repeatCount = 1;
rotationAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut];
[animatedImage.layer addAnimation:rotationAnimation forKey:@"rotationAnimation"];