一。图片旋转

  CABasicAnimation* rotationAnimation;

        rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];

        rotationAnimation.toValue = [NSNumber numberWithFloat: M_PI * 2.0 ];

        rotationAnimation.duration = 1;

        rotationAnimation.cumulative = YES;

        rotationAnimation.repeatCount = 0;

        [customView.layer addAnimation:rotationAnimation forKey:@"rotationAnimation"];

相关文章:

  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-18
  • 2022-12-23
  • 2022-02-21
  • 2022-12-23
  • 2021-08-01
  • 2021-05-16
相关资源
相似解决方案