UIView
为其动画提供了一些缓动选项(UIViewAnimationOptionCurveEaseIn
、UIViewAnimationOptionCurveEaseOut
、UIViewAnimationOptionCurveEaseInOut
),但我希望对缓动进行更多控制。
有没有办法给它提供一个自定义方程,或者以任何方式对它进行更多的控制?也就是说,除了使用touchesBegan:
等来滚动我自己的动画。
发布于 2011-02-23 15:52:38
我认为你需要使用核心动画来完成这个任务。
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.html
使用CAKeyframeAnimation ( http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Reference/CAKeyframeAnimation_class/Introduction/Introduction.html#//apple_ref/occ/cl/CAKeyframeAnimation )可以自定义动画的计时
https://stackoverflow.com/questions/5039985
复制相似问题