旋转360度动画

CABasicAnimation* rotationAnimation;

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

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

    rotationAnimation.duration = 0.5;

    rotationAnimation.cumulative = YES;

    rotationAnimation.repeatCount = 1;

    

    [self.animationView.layer addAnimation:rotationAnimation forKey:@"rotationAnimation"];

原文地址:https://www.cnblogs.com/bing-ge/p/4721372.html