Preventing the white gap that appears on swiping UIPageViewController

前端 未结 7 1040
广开言路
广开言路 2021-01-06 11:24

I have implemented the UIPageViewController in this manner:

\"Screenshot1\"

GalleryViewController

7条回答
  •  -上瘾入骨i
    2021-01-06 12:17

    Look like a layout issue.

    Since UIPageViewController with .Scroll type use a UIScrollView to make it,

    try to add self.automaticallyAdjustsScrollViewInsets = false to your viewDidLoad

    If it doesn't work, try to remove self.navigationController?.hidesBarsOnTap = true

    And if it doesn't work again, please provide a demo project, so I can figure out what is wrong.

提交回复
热议问题