UIPageViewController NSInternalInconsistencyException

后端 未结 5 1955
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-20 17:51

I\'m developing a simple UIPageViewController that has two pages. Each page is loaded from a different ViewController with their specific xib

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-20 18:12

    I fix this crash with changing direction .forward, to .reverse

    pageViewController?.setViewControllers([viewController], direction: direction, animated: true)
    

提交回复
热议问题