The setStatusBarHidden
setting and the "Status bar is initially hidden" Info.plist setting do not work unless you also set the "View controller-based status bar appearance" Info.plist key (UIViewControllerBasedStatusBarAppearance
) to "NO".
In other words, either you're doing this at the level of every single top-level view controller or you're doing it at the global UIApplication level, and this key determines which it is.
However, it is better to learn to do it the view controller way, because Apple might eventually take away the option to do it at the global UIApplication level.