-(void)loopBasecAnimation

{

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

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

    rotationAnimation.duration = 0.2;

    rotationAnimation.cumulative = YES;

    rotationAnimation.repeatCount =ULLONG_MAX;

    

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

    

}

 

-(void)stopLoopAnimation

{

    [failedTipImageView.layer removeAllAnimations];

}

相关文章:

  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-09
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案