转 如何在IOS设备中去掉屏幕上的status bar

引入
如何在IOS设备中去掉屏幕上的status bar,即:不显示设备上方的[网络、时间、电池??]条?
操作
方法一:
在-info.list项目文件中,加上“Status bar is initially hidden”选项,并勾选上右边的Checkbox,这样应用程序启动时,完全看不到Status bar;
 
方法二:
在你需要的地方,添加如下的代码:
[[UIApplication sharedApplication]setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
就会在运行中,把Status bar隐藏掉了。

 

转 http://mmz06.blog.163.com/blog/static/12141696201151993115319/

posted @ 2013-06-28 17:35  ygm900  阅读(253)  评论(0编辑  收藏  举报