ios 核心动画:转场动画

type:动画过渡类型
subtype:动画过渡方向
startProgress:动画起点(在整体动画的百分比)
endProgress:动画终点(在整体动画的百分比)

code

这里只演示第一个type cube"立方体翻滚" 效果:

...
CATransition *anmi=[CATransition animation];
animation.type=@"cube";
[_imageView.layer addsublayer:anmi forKey:nil ];

相关 动画效果 参数:


Paste_Image.png

你可能感兴趣的:(ios 核心动画:转场动画)