国内最全IT社区平台 联系我们 | 收藏本站
华晨云阿里云优惠2
您当前位置:首页 > php开源 > 综合技术 > iOS 完美解决iOS7 interactivePopGestureRecognizer 手势冲突

iOS 完美解决iOS7 interactivePopGestureRecognizer 手势冲突

来源:程序员人生   发布时间:2015-07-01 08:29:06 阅读次数:4332次

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

- (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

生活不易,码农辛苦
如果您觉得本网站对您的学习有所帮助,可以手机扫描二维码进行捐赠
程序员人生
------分隔线----------------------------
分享到:
------分隔线----------------------------
关闭
程序员人生