防止ios7平移手势弹出视图控制器 [英] prevent ios7 pan gesture to pop view controller
本文介绍了防止ios7平移手势弹出视图控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
iOS 7为popViewController引入了pan手势。它介绍了我正在使用的侧边栏的问题,所以我想阻止ios7的这个新功能。如何取消该行为?
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?
提前致谢
推荐答案
你可以使用yourNavigationController.interactivePopGestureRecognizer.enabled = NO;
You can use yourNavigationController.interactivePopGestureRecognizer.enabled = NO;
这篇关于防止ios7平移手势弹出视图控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文