Reputation: 284
I need a Light content
status bar for my iOS 8 app but it will show up as Dark
. This thing persists and I can't get it work.
What I have tried so far:
Info.plist
UIApplication
UINavigationBar
UIViewControllers
None of the above works, I get a Light content
on the Loading Screen Storyboard but it gets dark as soon as it loads the starting UIViewController
from the storyboard
. Any thoughts why this is happening?
Upvotes: 0
Views: 91
Reputation: 6795
Put that code in your view controller
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
[self setNeedsStatusBarAppearanceUpdate];
}
- (UIStatusBarStyle)preferredStatusBarStyle {
return UIStatusBarStyleLightContent;
}
Upvotes: 1