iOS隐藏状态栏

iOS7以下版本隐藏UIStatusBar的方法:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
{ 
    [application setStatusBarHidden:YES]; 
    return YES; 
}

iOS7之后:

- (BOOL)prefersStatusBarHidden NS_AVAILABLE_IOS(7_0); // Defaults to NO

太晚了,不好意思~

你可能感兴趣的:(iOS隐藏状态栏)