For non-UINavigationBar status bars
suggest change- In info.plist set
View controller-based status bar appearance
toYES
- In view controllers not contained by
UINavigationController
implement this method.
In Objective-C:
- (UIStatusBarStyle)preferredStatusBarStyle
{
return UIStatusBarStyleLightContent;
}
In Swift:
override func preferredStatusBarStyle() -> UIStatusBarStyle {
return UIStatusBarStyle.LightContent
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents