1

我打算使用CAAnimation来切换视图,但我对如何实际执行此操作感到困惑。我知道CAAnimation使用 to 和 from Value 可以工作,所以我将如何使用toValueand移动 UIView fromValue。假设我想模仿UINavigationController's pushViewController,我将如何使用CAAnimation上面提到的方法来做到这一点?

谢谢!!!

4

1 回答 1

1

如果您使用简单动画,则可以使用UIViewAPI,例如beginAnimations:context:

关于CAAnimation,您可以从文档参考中获取示例

于 2011-10-09T07:06:24.847 回答