隐藏状态栏 [英] hide the statusbar

查看:48
本文介绍了隐藏状态栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在我的应用程序中以全屏方式显示其中一个 ViewControllers 的视图,因此在 Interface Builder 中,我将状态栏设置为 None.我还将视图框架调整为 320*480

I hope to display the view of one of ViewControllers in my app as full screen , so in Interface Builder, I set the statusbar as None. I also resize the frame of view as 320*480

但是当我运行应用程序时,viewcontroller 的视图仍然显示状态栏.

but when I run the app, the view of the viewcontroller still displays the statusbar.

欢迎任何评论

谢谢

推荐答案

调用 setStatusBarHidden:withAnimation: on [UIApplication sharedApplication].

Call setStatusBarHidden:withAnimation: on [UIApplication sharedApplication].

这篇关于隐藏状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆