程序员人生 网站导航

iOS 完美解决iOS7 interactivePopGestureRecognizer 手势冲突

栏目:综合技术时间:2015-07-01 08:29:06

重写导航控制器,在其代理实现:

- (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⑺-interactivepopgesturerecognizer-is-freezing-app

http://www.trsjdc.com/320/#more⑶20

http://zhangmingwei.iteye.com/blog/2080457

------分隔线----------------------------
------分隔线----------------------------

最新技术推荐