Local navigation bar color settings
Set navigation bar color
self.navigationController.navigationBar.barTintColor = [Uicolor colorwithred:78.0/255 Green : 238.0/255 blue:218.0/255 alpha:1.0];
Set navigation bar text color white
self.navigationController.navigationBar.titleTextAttributes = @{nsforegroundcolorattributename : [Uicolor Whitecolor]};
Set button text color white
self.navigationController.navigationBar.setTintColor = [Uicolor Whitecolor]];
Global navigation bar color settings
* *
//Set navigation bar color in APPDELEGATE.M
[[Uinavigationbar appearance] Setbartintcolor:[uicolor colorwithred : 78.0/255 green:238.0/255 blue:218.0/255 alpha:1.0]];
Set navigation bar text color white
[[Uinavigationbar appearance] Settitletextattributes:@{nsforegroundcolorattributename:[uicolor Whitecolor]}];
Set button text color white
[[Uinavigationbar appearance] Settintcolor:[uicolor Whitecolor]];
Set navigation bar button font size
[[Uibarbuttonitem appearance] Settitletextattributes:[nsdictionary Dictionarywithobjectsandkeys : [Uifont boldsystemfontofsize:15], Uitextattributefont,nil] forstate:uicontrolstatenormal];
Change status bar color white
===============2015.11.22=================
Suddenly found in the general inside the adjustment Statusbarstyle can, this can also solve the Launchscreen.storyboard status bar color black problem.
==================old===================
* First add a uiviewcontrollerbasedstatusbarappearance in the Info.plist, the value is no
* Then write the following statement in the program
[[uiapplication sharedapplication] setstatusbarstyle:uistatusbarstylelightcontent];