IOS6 and iOS7 in the hidden Status Bar three ways to compare:
Storyboard
The interface is selected Uiviewcontroller, the rightmost simulated metrics find Status Bar set to None
Viewcontroller
IOS 6
Get the app's singleton by [UIApplication Sharedapplication] and 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 redraw Status bar[self Setneedsstatusbarappearanceupdate];
Info.plist
IOS 6
In Info.plist, add the Status bar is initially hidden row, and select the value YES.
IOS 7
Not only to add the Status bar is initially hidden row in the info.plist , select the value is YES,
You also need to add the View controller-based status bar appearance line and select NO.