UIViewController's prefersStatusBarHidden not working
问题 I am trying to make the status bar for one of my view controllers to be hidden (when displayed modally). When I'm presenting the view controller, the status bar is is to be hidden and then returned when dismissed. I have added the following code to the presented view controller - (BOOL)prefersStatusBarHidden { return YES; } I have also set the keys in the Info.plist file to the following: <key>UIViewControllerBasedStatusBarAppearance</key> <true/> From my understanding this should be all that