So I have a view controller modalVC that I am instantiating from a storyboard and presenting modally via [self presentViewController:modalVC animated:YES completion:nil].
The problem is that when the modal view is displayed, the status bar is hiding (which I actually want, even though I'm making no explicit instruction to do so), but when the modal controller is dismissed (via [self dismissViewControllerAnimated:YES completion:nil]), the status bar is remaining hidden.
I reiterate, I'm not to my knowledge making any explicit command to hide the status bar. None of my view controllers are overriding prefersStatusBarHidden, and nowhere am I calling setStatusBarHidden. I assume it's just the default modal presentation doing this.
But why is my status bar not reappearing?
dismiss the modal using
dismissViewControllerAnimated:YES, and callbefore
to make sure the bar is drawn in the correct location (it could happen when you set
wantsFullScreenLayouttoYESon your modal view )