如何打开/关闭状态栏?

发布于 2024-09-25 06:32:22 字数 72 浏览 0 评论 0原文

我遇到的情况是,有时需要一个真正的全屏视图,并且完全覆盖状态栏。当此视图消失时,我希望状态栏在其下方再次可见。有办法做到这一点吗?

I have a situation where I sometimes need a real fullscreen view that also covers the status bar completely. When this view is gone, I want the status bar to be visible again below it. Is there a way to do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

め七分饶幸 2024-10-02 06:32:22
[[UIApplication sharedApplication] setStatusBarHidden:YES/NO withAnimation: UISatusBarAnimation];
[[UIApplication sharedApplication] setStatusBarHidden:YES/NO withAnimation: UISatusBarAnimation];
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文