问题描述
我想在横向 iPhone 上展示一本书,该书将使用 UIPageViewController 中的页面卷曲,但我不希望书占据整个屏幕.
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.
为了澄清,假设背景是一个木桌图像,上面有可以使用 UIPageViewController 和页面卷曲浏览的书,但只有书页参与页面卷曲,背景是完全静态的.
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.
这可能吗?
推荐答案
是的,这是可能的.例如,我有一个 UIPageViewController 在屏幕的一半上使用.秘诀是将其添加到父视图控制器中,该控制器是 自定义容器视图控制器
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
这篇关于显示不占用整个屏幕的 UIPageViewController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!