CABasicAnimation* rotationAnimation;
rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
rotationAnimation.toValue = [NSNumber numberWithFloat: M_PI * 2.0 ];
rotationAnimation.duration = 3.0;
rotationAnimation.cumulative = YES;
rotationAnimation.repeatCount = MAXFLOAT;
[cyanLayer addAnimation:rotationAnimation forKey:@"rotationAnimation"];
iOS 旋转动画
最新推荐文章于 2023-06-16 21:31:05 发布