In the actual development, the status bar sometimes, we need to set ourselves;
Like what:
Default status bar
If the view we developed is black, then the effect
The status bar is black on the white background, the following view is black bottom?
Is this really good? What about a harmonious society? Good development is the art?
So the best effect is the color of the view and the status bar of the comparison of the harmony Point;
How do I change the color of the status bar?
1, first in the supporting files folder of the project
Info.plist, set view-based status bar appearance to NO
2, add in the corresponding VIEWCONTROLLE.M
Set the status bar color [[uiapplication sharedapplication] setstatusbarstyle:uistatusbarstylelightcontent Animated:NO];
It was set up successfully.
The status bar becomes white on the black background.
The final:
IOS modifies the color of the status bar font