Disable/enable scrolling in UIPageViewController

后端 未结 5 919
轮回少年
轮回少年 2020-12-31 14:50

I got a viewController which inherits from UIPageViewController ( @interface PageScrollViewController : UIPageViewController ) Now I\'

5条回答
  •  情话喂你
    2020-12-31 15:13

    I did the following thing (I have a controller that holds UIPageViewController).

    self.pageController.view.userInteractionEnabled = NO;
    

    And when you want to enable swipe or scroll, just enable user interaction.

提交回复
热议问题