禁止单个uiviewController 右滑退出

2021-03-18  本文已影响0人  三米板

//禁止单个uiviewController 右滑退出

id target = self.navigationController.interactivePopGestureRecognizer.delegate;
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:target action:nil];
    [self.view addGestureRecognizer:pan];
上一篇 下一篇

猜你喜欢

热点阅读