The status bar can be modified through some methods provided by the uiapplication class, such as removing the status bar completely or modifying the style, but these changes are only within your program, when you exit your program, it recovers again.
UIApplication *myApp = [UIapplication sharedApplication];
1. Hide the status bar
[myApp setStatusBarHidden:YES animated:YES];
Remember to increase the size of your "desktop" after hiding the status bar by 320 × 20, so it is best to hide it before any windows or view is created.
2. Status Bar Style
[myApp setStatusBarStyle: UIStatusbarStyleBlackOpaque];
typedef enum { UIStatusBarStyleDefault, UIStatusBarStyleBlackTranslucent, UIStatusBarStyleBlackOpaque } UIStatusBarStyle;
3. Status Bar direction
[myApp setStatusBarOrientation:UIInterfaceOrientationLandscapeLeft animated:NO];
Typedef Enum {uiinterfaceorientationportrait = uideviceorientationportrait, // portrait screen, vertical up margin = landscape, // portrait screen, vertical up and down reverse uiinterfaceorientationlandscapeleft = uideviceorientationlandscaperight, // The device rotates counterclockwise to the Landscape mode. uiinterfaceorientationlandscaperight = uideviceorientationlandscapeleft // The device rotates clockwise to the Landscape mode.} uiinterfaceorientation;