- (BOOL) application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
方法中添加:
[application setStatusBarHidden:YES];
2)在一些控制器的
- (void)viewDidLoad
方法中添加:
UIApplication *application = [UIApplicationsharedApplication];
[application setStatusBarHidden:YES];