UIPageViewController 禁止翻页代码如下:
for (UIGestureRecognizer *ges in self.pageViewController.view.gestureRecognizers) {
if ([ges isKindOfClass:[UIPanGestureRecognizer class]]) {
ges.enabled = NO;
break;
}
}
UIPageViewController 禁止翻页代码如下:
for (UIGestureRecognizer *ges in self.pageViewController.view.gestureRecognizers) {
if ([ges isKindOfClass:[UIPanGestureRecognizer class]]) {
ges.enabled = NO;
break;
}
}