设置导航

设置导航的颜色实际显示出来的颜色有差别,设置以下代码
//设置导航栏背景颜色

【设置导航】[[UINavigationBarappearance]setBarTintColor:BackWhite];
//设置导航栏背景差别
[[UINavigationBarappearance]setTranslucent:NO];
//设置导航栏标题颜色
[[UINavigationBarappearance]setTitleTextAttributes:@{NSForegroundColorAttributeName:TextBlack,
NSFontAttributeName:UIFont(20.0)}];

    推荐阅读