UIPageViewController: Child Controller ignoring status bar height during scrolling

前端 未结 1 544
有刺的猬
有刺的猬 2021-02-08 23:32

I\'m having some trouble with a UIPageViewController. If I scroll to a new page, the new view controller is behind the status bar while

相关标签:
1条回答
  • 2021-02-09 00:21

    I just found a possible solution:

    In my case, the UIPageViewController container had a Top Space of 0 constraint to its superview. The superview was the root container which contains the status bar.

    I changed the value of the Top Space to 20, which is higher than the status bar. Now it doesn’t move the views below the status bar, because they already are.

    Hope that helps!

    0 讨论(0)
提交回复
热议问题