/*
* The Activity View is the top spinning throbber in the status/battery bar. We init it with the default Grey Style.
*
* whiteLarge = UIActivityIndicatorViewStyleWhiteLarge
* white = UIActivityIndicatorViewStyleWhite
* gray = UIActivityIndicatorViewStyleGray
*
*/
3 回答
至少在Cordova 7.0和Cordova iOS 4.4.0中,有's no need to change the splash screen plugin'的源代码 . 您可以将以下行添加到
config.xml
文件中,并且微调器将显示为白色而不是灰色 .NOTE :对于微调器,Apache Cordova文档有点令人困惑 . config.xml指南说明以下关于
TopActivityIndicator
:我相信该声明指的是以下微调器:
但是,至少在iOS上的Cordova 7.0中,更改
TopActivityIndicator
会影响应用程序打开时屏幕中间显示的微调器的外观 . 以下是whiteLarge
设置的示例:希望有所帮助 .
如果你想在iOS上更改“cordova-plugin-splashscreen”Spinner颜色 . 有3种预定义颜色选项可供选择(不知道如何将其更改为任何颜色) . 您必须手动编辑“/ plugins / cordova-plugin-splashscreen / src / ios”中的iOS插件文件“CDVSplashScreen.m” .
gray (default - search for this line):
white
whiteLarge
Found in the files:
我也找到了一种方法来改变微调位置检查我的stack post here
在
config.xml
中,您可以添加以下首选项:您也可以更改
SplashScreenBackgroundColor
:请参阅this链接以获取更多信息 .