How do you hide the status bar in ios 9?
This is now deprecated:
[UIApplication sharedApplication] setStatusBarHidden:YES];
An easy approach would be to set the windowLevel
of the Application to be either normal or statusBar based on your needs, so to start
Objective-C
To Hide the Status Bar
UIApplication.sharedApplication.keyWindow.windowLevel = UIWindowLevelStatusBar;
To Show the Status Bar
UIApplication.sharedApplication.keyWindow.windowLevel = UIWindowLevelNormal;
Also add the Key
(View controller-based status bar appearance) with boolean value NO.