自此新XCode更新以来,是否有人遇到过白色状态栏?
在更新之前,此代码有效。
statusBar.styleBlackTranslucent();
Run Code Online (Sandbox Code Playgroud)
...现在我得到一个带有白色文本的白色栏。(请参见屏幕截图)
有关相关的调试信息:
statusBar.hide();
Run Code Online (Sandbox Code Playgroud)
正在运行...所以我知道cordova-plugin-statusbar仍在某种程度上起作用。
但是,当我取出所有状态栏代码并从XCode导出时,该栏仍然是带有白色背景的白色文本。
当然,更新将在我要发布Beta版的那一天进行。
这是我的config.xml:
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.XX" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>XX</name>
<description>Create, experience, share.</description>
<author email="XX@XX.com" href="https://XX.com/">Rob Gungor</author>
<content src="index.html" />
<access origin="*" />
<allow-navigation href="http://ionic.local/*" />
<allow-navigation href="http://192.168.11.58:8100" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<preference name="webviewbounce" value="true" />
<preference name="UIWebViewBounce" value="true" />
<preference name="DisallowOverscroll" value="true" />
<preference name="android-minSdkVersion" value="16" />
<preference name="BackupWebStorage" value="cloud" />
<preference name="SplashMaintainAspectRatio" value="true" …Run Code Online (Sandbox Code Playgroud)