Http://stackoverflow.com/questions/17678881/how-to-change-status-bar-text-color-in-ios-7
An answer on the StackOverflow
Wilsontgh
Alternatively, you can choose to exit View-controller based on the appearance of the status bar
1. Set Uiviewcontrollerbasedstatusbarappearance to NO.
2. Call [[UIApplication sharedapplication] setstatusbarstyle:uistatusbarstylelightcontent];
Lucas
In fact, without writing any code can be achieved.
Follow the steps below to show the status bar text in the entire app as white:
In the project format file
- Status Bar Style:uistatusbarstylelightcontent
- View controller-based status Bar Appearance:no
- Status Bar is initially hidden:no
Pradeep Mahdevu
Set ' View controller-based status bar appearance ' to NO in Info.plist
Add in Appdelegate:
| 1 |
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; |
To
| 1234 |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ ...... ...} |
Stepik21
It's useless to me, here's my solution:
Add in Info.plist
Uiviewcontrollerbasedstatusbarappearance, set the value to NO
And then didfinishlaunchingwithoptions the appdelegate, add the code:
| 12 |
[application setStatusBarHidden:NO];[application setStatusBarStyle:UIStatusBarStyleLightContent]; |
iOS Change status bar color