PageViewController 和方向更改
我有一些关于 UIPageViewControllers 的策略问题。看起来它完全符合我的要求,但有一些事情我不确定。我想也许有人可以分享一两颗宝石。 :)
所以这里是:我想使用 PageViewCtl
以纵向或横向模式显示内容,但是,无论方向如何,它们都必须位于同一控制器中(即具有相同的视图)该设备是。原因是内容必须能够以这样的方式(横向)缩放,即内容的两个“页面”同时缩放,而不是单独缩放。此时,我无法真正了解如何在 PageViewCtl
中处理此问题,因为据我所知,您无法在 2 个视图控制器之间共享视图。那么有人对这个问题有任何见解吗?非常感谢!
I have a bit of a strategy question regarding UIPageViewControllers
. It seems like it would fit my requirements perfectly but there are a few things which I'm not sure about. I thought maybe someone out there may have a gem or two to share. :)
So here goes: I would like to use PageViewCtl
to show content in either portrait or landscape mode, however, they have to be in the same controller (i.e. have the same view) regardless of what orientation the device is. The reason is that the content has to be zoomable in such a way (in landscape orientation) that both "pages" of content are zoomed at once, not separately. At this point, I can't really see how this could be handled in a PageViewCtl
since, as far as I know, you can't share a view between 2 view controllers. So does anyone have any insight on this question? Much thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我从 Erica Sadun 那里偷来了这个(https://github.com/erica/iOS-5-Cookbook):
给她一些爱。并注意超级聪明的“if (sideBySide && (leftPage % 2)) leftPage--;”,它确保左页始终是奇数页。
-一个
I stole this from Erica Sadun (https://github.com/erica/iOS-5-Cookbook):
Give her some love. And note the super-clever "if (sideBySide && (leftPage % 2)) leftPage--;", which ensures that the left page is always an odd-numbered page.
-A