IOS _ hide the top Status Bar
Comparison between iOS6 and iOS7 in hiding Status Bar:
Storyboard
Select UIViewController on the page, and the Simulated Metrics on the rightmost shows that the Status Bar is set to None.
ViewController
IOS 6
Use [UIApplication sharedApplication] to obtain the app Singleton, and then call the setStatusBarHidden method to hide the Status Bar.
UIApplication *app = [UIApplication sharedApplication];[app setStatusBarHidden:YES withAnimation:YES];
IOS 7
Implement the prefersstatusbarhidmethod and return YES
-(BOOL) prefersStatusBarHidden {return YES;} // in special cases, call the following method to force re-paint the ready Status Bar [self setNeedsStatusBarAppearanceUpdate];
Info. plist
IOS 6
Add the Status bar is initially hidden row to Info. plist and set the value to YES.
IOS 7
In addition to adding a row of Status bar is initially hidden in Info. plist, select YES,
You also need to add a row of View controller-based status bar appearance, with the value set to NO.