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) { }];
相关文章推荐
- iOS 动画Animation详解, UIView动画(UIView属性动画,UIViewTransition动画,UIView Block动画),CALayer动画(CABasicAnima...)
- ios之UIView执行基础动画Animation使用参数配置
- UIView动画块animation进行时默认是禁止交互(即手势什么的都不起作用),可增加参数来改变
- IOS动画核心 之 KeyFrameAnimation简介
- iOS-CAAnimation & UIView动画
- Android动画之PropertyAnimation;Interpolator;Evaluator与Keyframe
- 旋转动画 uiview animation rotate
- How To Use UIView Animation Tutorial
- UIViewAnimationOption的枚举
- UIView的基本属性及ANimation
- UIView、Layer、Animation
- iOS学习笔记--UIView的常见属性及方法,UIViewAnimationWithBlocks
- 3D动画之,关键帧动画( keyframe animation ) - 完
- UIViewAnimationOptions枚举笔记
- 细说css3中的animation和keyframe
- How To Use UIView Animation Tutorial
- 父视图 使用 UIViewAnimationWithBlocks 时,如何让子视图无动画
- create-keyframe-animation-js实现css3动画
- UIView动画animation 水平移动UILabel
- 使用animation效果切换两个UIView