UIPageviewController - Change from two page mode to one page mode without changing orientation

白昼怎懂夜的黑 提交于 2019-12-05 21:02:11
Fábio Oliveira

You cannot change from showing two pages to showing just one page without changing the orientation.

What you can do is to create your own container and deal with the transitions yourself. Is easier than it looks although I cannot provide with any sample code from myself.

However I can show some tutorials I was able to find with some googling:

If you want to have the page turning effect you may look here.

With this you'll have the freedom to show how many view controllers you want and change that number whenever. And you can even animate when doing that.

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