iOS 完美解决iOS7 interactivePopGestureRecognizer 手势冲突
重写导航控制器,在其代理实现:
- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated { BOOL isRootVC = viewController == navigationController.viewControllers.firstObject; navigationController.interactivePopGestureRecognizer.enabled = !isRootVC; }
参考各位前辈的分析:
http://stackoverflow.com/questions/21221581/ios-7-interactivepopgesturerecognizer-is-freezing-app
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。