iOS 完美解決iOS7 interactivePopGestureRecognizer 手勢沖突
來源:程序員人生 發布時間:2015-07-01 08:29:06 閱讀次數:4636次
重寫導航控制器,在其代理實現:
- (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
生活不易,碼農辛苦
如果您覺得本網站對您的學習有所幫助,可以手機掃描二維碼進行捐贈