标签:影响 定义 action pos iges items nil UI pre
此方法能够自己定义返回button,且不影响返回手势。
新方法:
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]
initWithImage:img
style:UIBarButtonItemStylePlain
target:self
action:@selector(onBack:)];
self.navigationController.interactivePopGestureRecognizer.delegate = (id<UIGestureRecognizerDelegate>)self;
老方法:
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:self action:nil];
self.navigationController.navigationBar.topItem.backBarButtonItem = backButton;
标签:影响 定义 action pos iges items nil UI pre
原文地址:http://www.cnblogs.com/yfceshi/p/6884974.html