禁止单个uiviewController 右滑退出
2021-03-18 本文已影响0人
三米板
//禁止单个uiviewController 右滑退出
id target = self.navigationController.interactivePopGestureRecognizer.delegate;
UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:target action:nil];
[self.view addGestureRecognizer:pan];