标签:
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"];
标签:
原文地址:http://www.cnblogs.com/bing-ge/p/4721372.html