self.view.backgroundColor = [UIColor cyanColor];
self.navigationController.navigationBar.barTintColor = [UIColor brownColor];
// 为了隐藏默认的返回按钮
// self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:[UIView new]];
//开启手势操作
self.navigationController.interactivePopGestureRecognizer.delegate = nil;
[self.navigationController.navigationBar setTitleTextAttributes:@{UITextAttributeTextColor: [UIColor redColor],UITextAttributeFont:[UIFont systemFontOfSize:19.]}];
//自定义返回按钮
UIImage *backButtonImage = [[UIImage imageNamed:@"icon-syny-fh"]resizableImageWithCapInsets:UIEdgeInsetsMake(0, 30, 0, 0)];
[[UIBarButtonItem appearance]setBackButtonBackgroundImage:backButtonImage forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
//将返回按钮的文字position设置不在屏幕上显示
[[UIBarButtonItem appearance]setBackButtonTitlePositionAdjustment:UIOffsetMake(NSIntegerMin, NSIntegerMin) forBarMetrics:UIBarMetricsDefault];