[英]Recreate iOS app opening transition with CATransition
I'm making an iOS app and I'd like to know if you can recreate the animation that occurs when you open an iOS app from the Springboard using CATransition
. 我正在制作一个iOS应用程序,我想知道你是否可以重新创建当你使用CATransition
从Springboard打开iOS应用程序时发生的动画。 Thanks! 谢谢!
No, CATransition
on iOS only provides cross-fading and a few variations of sliding animations. 不,iOS上的CATransition
仅提供交叉淡入淡出和滑动动画的一些变体。
You will need to use either the UIView
animation methods (see "Animations" in the View Programming Guide for iOS ) or CAAnimation
(eg CABasicAnimation
, see the Core Animation Programming Guide ). 您将需要使用UIView
动画方法(请参阅“ 适用于iOS的View编程指南 ”中的“动画”)或CAAnimation
(例如, CABasicAnimation
,请参阅“ 核心动画编程指南” )。
In both cases, you'll probably want to animate the transform
property of the view/layer. 在这两种情况下,您可能都希望为视图/图层的transform
属性设置动画。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.