Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法禁用UIViewController的右滑退出 #31

Closed
easongtd opened this issue Nov 4, 2016 · 3 comments
Closed

无法禁用UIViewController的右滑退出 #31

easongtd opened this issue Nov 4, 2016 · 3 comments

Comments

@easongtd
Copy link

easongtd commented Nov 4, 2016

我想在某个页面禁止pop右滑退出,设置self.rt_disableInteractivePop = YES;但是不起作用,还是可以右滑,这是什么原因?

@rickytan
Copy link
Owner

rickytan commented Nov 5, 2016

self.rt_disableInteractivePop = YES; 需要在 viewDidLoad 中设置,之后的更改会无效

@rickytan
Copy link
Owner

rickytan commented Nov 5, 2016

will appear 也可以

@easongtd
Copy link
Author

easongtd commented Nov 7, 2016

这个我试过了,原因可能是我自定义了一个BaseNavigationController继承RT,并在里面处理全屏右滑,可能是这个原因导致不能右滑。我后来在BaseNavigationController的gestureRecognizerShouldBegin代理方法中实现了某个页面禁用右滑。

@rickytan rickytan closed this as completed Nov 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants