标签:ios 状态栏 status bar
从iOS7开始,系统提供了2种管理状态栏的方式- (BOOL)prefersStatusBarHidden;
如果想利用UIApplication来管理状态栏,首先得修改Info.plist的设置
UIApplication *app = [UIApplication sharedApplication];
[app setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];
[app setStatusBarStyle:UIStatusBarStyleLightContent animated:YES];
// app.statusBarHidden = YES;
// app.statusBarStyle = UIStatusBarStyleLightContent;
标签:ios 状态栏 status bar
原文地址:http://blog.csdn.net/zhangping871/article/details/40304043