我从here分得到了相反的问题.
在iOS7
中,默认情况下,UINavigationController
的堆栈的向后滑动手势可以弹出所呈现的ViewController
.现在我刚为所有的ViewControllers
款统一了self.navigationItem.leftBarButtonItem
款.
以下是代码:
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:LOADIMAGE(@"back_button") style:UIBarButtonItemStylePlain target:self action:@selector(popCurrentViewController)];
在此之后,navigationController.interactivePopGestureRecognizer
被禁用.如何在不删除自定义leftBarButtonItem
的情况下启用弹出手势?
谢谢!