iOS -- 全局导航栏返回键

   [UINavigationBar appearance].backIndicatorTransitionMaskImage = [UIImage imageNamed:@"backArrowMask.png"];

    [UINavigationBar appearance].backIndicatorImage = [UIImage imageNamed:@"icon_arrowback_n”];

 

icon_arrowback_n 大小为@2x = 42* 42

 

 

自定义返回按钮会造成返回手势不能使用,解决方法
1
2
3
4
///处理自定义返回按钮后不能侧滑
@interface RootNavigationController : UINavigationController
 
@end

  

@interface RootNavigationController : UINavigationController @end @implementation RootNavigationController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view.  self.interactivePopGestureRecognizer.delegate = self; } - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer { if (self.childViewControllers.count == 1) { return NO; } return YES; }

iOS -- 全局导航栏返回键

上一篇:移动硬盘由于IO设备错误,无法运行此项请求要怎么恢复文件


下一篇:appium通过同级别(兄弟关系)元素找到元素