统一设置导航栏样式
//统一设置导航栏样式
//设置导航栏背景颜色
[[UINavigationBar appearance]setBarTintColor:[UIColor redColor]];
//如果你发现设置的导航栏背景颜色有些模糊感请设置
[UINavigationBar appearance].translucent = NO;
//设置导航栏左右侧的字体颜色
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
//设置导航栏标题字体的大小和颜色
[[UINavigationBar appearance]setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor],NSFontAttributeName:[UIFont boldSystemFontOfSize:20.0f]}];