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