Any ViewController added to the NavigationController directly has a gray status bar which matches the color of the NavigationBar.
But Whenever I display a Modal, the status bar is white, which doesn't match the NavigationBar I have placed in there?
I have seen tons of answers on here, most of them don't work, and the ones that do don't seem to be good solutions. For instance I don't want to wrap every single modal inside of a UINavigationController.
I tried the following which was also recommended which completely gets rid of my status bar, and that's not what I want.
-(UIStatusBarStyle)preferredStatusBarStyle{
return UIStatusBarStyleLightContent;
}
So what's the magical solution here?