IOS6 and iOS7 in the hidden Status Bar three ways comparison:
Storyboard
The interface is selected Uiviewcontroller, the rightmost simulated metrics find Status Bar set to None
Viewcontroller
IOS 6
Get the app's singleton through [UIApplication Sharedapplication]. Then call the Setstatusbarhidden method to hide the Status Bar.
UIApplication *app = [UIApplication sharedapplication]; [App Setstatusbarhidden:yes Withanimation:yes];
IOS 7
implement the Prefersstatusbarhidden method and return YES
-(BOOL) prefersstatusbarhidden{ return YES; Special case, call the following method to force another paint Status bar[self setneedsstatusbarappearanceupdate];
Info.plist
IOS 6
Add the Status bar is initially hidden row in Info.plist and select YES.
IOS 7
Not only to add the Status bar is initially hidden row in info.plist , select the value YES,
You also need to add the View controller-based status bar appearance row and select the value NO.
Ios_ Hide Top status bar