您的位置:首页 > 产品设计 > UI/UE

UIViewKeyframeAnimation

2014-04-30 16:40 706 查看
[UIView animateKeyframesWithDuration:2.0 delay:0.0 options:UIViewKeyframeAnimationOptionCalculationModeLinear animations:^{
[UIView addKeyframeWithRelativeStartTime:0.0 relativeDuration:1.0/3.0 animations:^{
self.myImage.transform =CGAffineTransformMakeRotation(2.0*M_PI /3.0);
}];
[UIView addKeyframeWithRelativeStartTime:1.0/3.0 relativeDuration:1/3.0 animations:^{
self.myImage.transform =CGAffineTransformMakeRotation(4.0*M_PI /3.0);
}];
[UIView addKeyframeWithRelativeStartTime:2.0/3.0 relativeDuration:1.0/3.0 animations:^{
self.myImage.transform =CGAffineTransformMakeRotation(0.0);
}];
} completion:^(BOOL finished) {

}];

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: