如何在内部屏幕中设置状态栏颜色?

发布于 2025-01-30 06:59:29 字数 221 浏览 2 评论 0原文

我有这个带有MainscreenViewController的Mainscreen,在该ViewController中,我可以设置状态栏颜色。到目前为止很好。但是,还有两个内部屏幕的状态栏颜色的设置相同(白色),而实际上它们需要是黑色的,以免它们消失在后台。我该怎么做?我应该为他们创建View Controllers吗?我只是从编码开始,所以我不知道这里是否有另一种方法,所以我一直在寻找一种仅在此屏幕上设置状态栏颜色的方法。

I have this MainScreen, which has its MainScreenViewController and in that viewController I can set the statusBar color. Fine so far. But there are also two internal screens whose statusBar colors are being set the same (white), when in fact they need to be black so they don't disappear into the background. How can I do that? Should I create ViewControllers for them? I'm just starting out with coding, so I don't know if there's another approach here, so I've been looking for a way to set the status bar color only on this screen.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文