I'm trying to get the status bar to be black for my app since it would look a lot better with my content.
Everything I've been reading is I would need:
UIView* loadingView;
- (void)viewDidLoad {
[super viewDidLoad];
[self setNeedsStatusBarAppearanceUpdate];
}
and
-(UIStatusBarStyle) preferredStatusBarStyle
{
return UIStatusBarStyleBlackOpaque;
}
But this results in an entirely white status bar with no text or battery indicator. Possibly because its depreciated? How do I achieve this in iOS 9+?