How to change UIPageViewController direction of paging curl animation

核能气质少年 提交于 2019-11-29 04:54:31
Bogdan Onu

If you are supporting only portrait mode then you should look at the UIPageViewController delegate method pageViewController:spineLocationForInterfaceOrientation: and return UIPageViewControllerSpineLocationMax.

But if you want to support both landscape and portrait then you could keep the default spine location animations but provide the pages in the opposite direction than requested like this

In the : pageViewController:viewControllerBeforeViewController: return the next page and in the : pageViewController:viewControllerAfterViewController just return the previous one.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!