#import <QuartzCore/QuartzCore.h>
...

CABasicAnimation *rotationAni = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"]; rotationAni.toValue = [NSNumber numberWithFloat:M_PI*2]; rotationAni.duration = 0.5; rotationAni.cumulative = YES; rotationAni.repeatCount = 10000; [indicatorView.layer addAnimation:rotationAni forKey:@"rotationAnimation1"];

 

相关文章:

  • 2022-12-23
  • 2021-09-02
  • 2022-01-08
  • 2021-09-18
  • 2021-04-28
猜你喜欢
  • 2021-10-14
  • 2021-07-13
  • 2022-01-30
  • 2021-06-20
  • 2022-12-23
  • 2022-01-31
  • 2022-12-23
相关资源
相似解决方案