iOS 8 UIPageViewController Applying Constraints After Transitions

前端 未结 5 1858
傲寒
傲寒 2020-11-28 03:05

My app has a multi-pane tutorial-style view that users swipe through to learn about the app. This is implemented very much as described in this tutorial. Having implemented

5条回答
  •  情深已故
    2020-11-28 03:23

    I figured out you need to base your constraints on the view and not the layout guide of your view controller. This will ensure your view controller respects the constraints you set prior to the transition in a PageViewController.

    you can do this like so:

    Constraints example

    Remember to uncheck "Constrain to margins"

提交回复
热议问题