prevent ios7 pan gesture to pop view controller

2019-06-06 10:12发布

问题:

iOS 7 has introduced pan gesture to popViewController. It introductes problems with the sidebar that I am using so I want to prevent this new function of ios7. How can I cancel that behaviour?

Thanks in advance

回答1:

You can use yourNavigationController.interactivePopGestureRecognizer.enabled = NO;