Show UIPageViewController that doesn't take whole screen

我的未来我决定 提交于 2020-01-14 09:54:14

问题


I'd like to show a book on landscape iPhone that would use page curl from UIPageViewController, but I'd like book not to take the whole screen.

To clarify, let's say background is a wooden desk image and there is book on it that can be browsed using UIPageViewController and page curl but only book pages participate in page curl, background is completely static.

Is this possible?


回答1:


Yes it is possible. I have a UIPageViewController using on half the screen for example. The secret is to add it into a parent view controller that is a custom container view controller



来源:https://stackoverflow.com/questions/13122925/show-uipageviewcontroller-that-doesnt-take-whole-screen

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