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;
}
}
本文标题:UIPageViewController 禁止翻页
本文链接:https://www.haomeiwen.com/subject/khuzqktx.html
网友评论