开发者

How can I control UIViewAnimationTransitionCurlUp effect direction?

开发者 https://www.devze.com 2023-01-21 08:36 出处:网络
There are two viewControllers in my project, and one is the main controller. Another is its subview controller used for inserting into the main controller. I set the controller translate animation wit

There are two viewControllers in my project, and one is the main controller. Another is its subview controller used for inserting into the main controller. I set the controller translate animation with UIViewAnimationTransitionCurlUp, the subView is 'autorotate' left or right, and both the 开发者_开发技巧nib filess direction is horizontal.

In my subviewController do the animation UIViewAnimationTransitionCurlUp is horizontal, but in mainviewController do the same animation the direction is vertical. How can I control the direction?


Apple doesn't provide anything other than curlup, and it is locked to portrait orientation for space reasons. If you really need it, try building it with CoreAnimation or OpenGL. Good luck!

0

精彩评论

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

关注公众号