設(shè)置導(dǎo)航的顏色實(shí)際顯示出來(lái)的顏色有差別论衍,設(shè)置以下代碼
//設(shè)置導(dǎo)航欄背景顏色
[[UINavigationBarappearance]setBarTintColor:BackWhite];
//設(shè)置導(dǎo)航欄背景差別
[[UINavigationBarappearance]setTranslucent:NO];
//設(shè)置導(dǎo)航欄標(biāo)題顏色
[[UINavigationBarappearance]setTitleTextAttributes:@{NSForegroundColorAttributeName:TextBlack,
NSFontAttributeName:UIFont(20.0)}];