美文网首页
iOS 禁止单个页面的侧滑返回

iOS 禁止单个页面的侧滑返回

作者: 没有时间机器 | 来源:发表于2017-05-08 10:55 被阅读0次

// 禁止侧滑返回
id traget = self.navigationController.interactivePopGestureRecognizer.delegate;

UIPanGestureRecognizer * pan = [[UIPanGestureRecognizer alloc]initWithTarget:traget action:nil];

[self.view addGestureRecognizer:pan];

相关文章

网友评论

      本文标题:iOS 禁止单个页面的侧滑返回

      本文链接:https://www.haomeiwen.com/subject/xvdmtxtx.html