码迷,mamicode.com
首页 > 移动开发 > 详细

iOS 完美解决iOS7 interactivePopGestureRecognizer 手势冲突

时间:2015-04-29 13:37:52      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:

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

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

http://www.trsjdc.com/320/#more-320

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

iOS 完美解决iOS7 interactivePopGestureRecognizer 手势冲突

标签:

原文地址:http://blog.csdn.net/alincexiaohao/article/details/45364525

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!