开发者

CAAnimation trouble

开发者 https://www.devze.com 2023-04-12 05:43 出处:网络
I am planning on using CAAnimation to switch views but I am confused on how to actually do this. I know CAAnimation works by using a to and from Value so how would I move a UIView by using toValue and

I am planning on using CAAnimation to switch views but I am confused on how to actually do this. I know CAAnimation works by using a to and from Value so how would I move a UIView by using toValue and fromValue. Lets say I want to mimic the UINavigationController's pushVie开发者_Go百科wController, how would I do this using CAAnimation like I mentioned above?

Thanks!!!


If you use the simple animation, you can use the UIView APIs, like beginAnimations:context:

About CAAnimation, you can get the sample from doc reference

0

精彩评论

暂无评论...
验证码 换一张
取 消