如何在iPhone应用程序上获得黑色状态栏? [英] How to get a black status bar on an iPhone app?
本文介绍了如何在iPhone应用程序上获得黑色状态栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想为我的iPhone应用程序使用黑色状态栏。我在所有.xibs上都选择了黑色状态栏,但我仍然无法将其设为黑色。这是其他人看到或知道如何补救的问题吗?
I want to use a black status bar for my iPhone app. I have selected black status bar on all of my .xibs but I still can't get it to be black. Is this an issue that anyone else has seen or knows how to remedy?
推荐答案
- 打开info.plist文件。
- 添加新行。
- 选择状态栏样式作为键。
- 选择不透明黑色风格作为值。
- Open the "info.plist" file .
- Add a new row.
- Select "Status bar style" as the key.
- Select "Opaque black style" as the value.
编辑:以下@codrut的评论选择价值:
如果你走得很远,有一个按钮可以为你提供可能的选项。
The comment by @codrut below to choose the value:
If you go far to the right, there's a button that brings you a drop down with the possible options.
这篇关于如何在iPhone应用程序上获得黑色状态栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文