How to change Status Bar text color in iOS 7
Set the UIViewControllerBasedStatusBarAppearance to YES in the .plist file.
-
In the viewDidLoad do a
[self setNeedsStatusBarAppearanceUpdate];
-
Add the following method:
<pre>
- (UIStatusBarStyle)preferredStatusBarStyle
{
return UIStatusBarStyleLightContent;
}
</pre>
网友评论