topLayoutGuide in child view controller

前端 未结 11 2090
既然无缘
既然无缘 2020-12-07 11:29

I have a UIPageViewController with translucent status bar and navigation bar. Its topLayoutGuide is 64 pixels, as expected.

However, the ch

11条回答
  •  鱼传尺愫
    2020-12-07 12:19

    This has been addressed in iOS 8.

    How to set topLayoutGuide position for child view controller

    Essentially, the container view controller should constrain the child view controller's (top|bottom|left|right)LayoutGuide as it would any other view. (In iOS 7, it was already fully constrained at a required priority, so this didn't work.)

提交回复
热议问题