XCode5 去掉 StatusBar

要隐藏StatusBar, 在iOS7之前,只需要添加

[[UIApplication sharedApplication] setStatusBarHidden:YES];

现在需要在plist文件中添加键值

UIStatusBarHidden:YES

UIViewControllerBasedStatusBarAppearance:NO

猜你喜欢

转载自crackren.iteye.com/blog/1945190