【问题标题】:How to add a UIPageViewController with dynamic width如何添加具有动态宽度的 UIPageViewController
【发布时间】:2015-02-28 21:59:00
【问题描述】:

我有 8 个带有 UIPageViewController 的 viewController。我想要一个 pageViewController 和 cildViewControllers 具有动态视图宽度和填充,如下所示:

http://i.imgur.com/zf5xPyA.png?1

我可以使用 UIPageViewController 执行此操作吗?我该如何执行此操作?我知道我可以只用一个 pageControl 和 UIViews 来做到这一点,但我更喜欢用 childViewControllers 来做到这一点。

【问题讨论】:

  • 你找到答案了吗?

标签: ios cocoa-touch uipageviewcontroller


【解决方案1】:

在子 VC 中 - 更新您的 preferredContentSize 属性

【讨论】:

    猜你喜欢
    • 2017-07-08
    • 2016-11-28
    • 2015-07-17
    • 2015-01-16
    • 2014-12-13
    • 2012-03-24
    • 1970-01-01
    • 2011-01-28
    • 1970-01-01
    相关资源
    最近更新 更多