UIPageViewController NSInternalInconsistencyException

后端 未结 5 1956
佛祖请我去吃肉
佛祖请我去吃肉 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:08

    Figured it out (at least what my problem was) - You shouldn't set a UIViewController's self.view directly, but instead use self.view.addSubview(viewA) and then use

    UIView.transitionFromView(self.viewA, toView: self.viewB, duration: 0.5, options: UIViewAnimationOptions.TransitionFlipFromLeft, completion: nil)
    

提交回复
热议问题