#pragma mark - 导航栏基本设置
- (void)setupUI{
/* 1.设置导航栏颜色 */
UINavigationBar *navigationBar = [UINavigationBar appearance];
//[navigationBar setBarTintColor:XXYColor(59.0, 69.0, 98.0, 1.0)];
//
/* 2.设置导航条颜色 */
[self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"navitationbar"] forBarMetrics:UIBarMetricsDefault];
//self.navigationController.navigationBar.barTintColor = [UIColor blackColor];
/* 3.改变导航栏返回按钮颜色*/
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
/* 4.设置导航条标题字体颜色以及大小*/
[navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:18], NSForegroundColorAttributeName:[UIColor whiteColor]}];
}