标签:map animation anim repeat layer nsvalue orm for ota
旋转动画
*/
-(void)mapBtnAnimation{
CABasicAnimation* rotationAnimation;
rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform"];
rotationAnimation.fromValue = [NSValue valueWithCATransform3D:CATransform3DIdentity];
rotationAnimation.toValue = [ NSValue valueWithCATransform3D:CATransform3DMakeRotation(M_PI, 0.0, 0.0, 1.0) ];
rotationAnimation.duration = 1.0;
rotationAnimation.cumulative = YES;
rotationAnimation.repeatCount = MAXFLOAT;
[self.showMapBtn.layer addAnimation:rotationAnimation forKey:@"rotationAnimation"];
}
标签:map animation anim repeat layer nsvalue orm for ota
原文地址:http://www.cnblogs.com/jiqiaochun/p/6547093.html