Disable/enable scrolling in UIPageViewController

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

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

5条回答
  •  死守一世寂寞
    2020-12-31 15:03

    Or you can cast in your PagingVC To disable paging:

    self.delegate = nil;
    self.dataSource = nil;
    

    And for enable it again:

    self.delegate = self;
    self.dataSource = self;
    

提交回复
热议问题