首页 > 其他 > 详细

旋转360度动画

时间:2015-08-11 18:30:40      阅读:263      评论:0      收藏:0      [点我收藏+]

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"];

旋转360度动画

原文:http://www.cnblogs.com/bing-ge/p/4721372.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!