设置AutoHideSplashScreen在iOS的Cordova 3.0.0中无效 [英] Setting AutoHideSplashScreen has no effect in Cordova 3.0.0 for iOS

查看:243
本文介绍了设置AutoHideSplashScreen在iOS的Cordova 3.0.0中无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

AutoHideSplashScreen 设置为false在Cordova 3.0.0 for iOS中无效。

我想控制自己的初始屏幕。由于应用程序需要几秒钟来渲染视图,因此需要显示一些时间。
'navigator.splashscreen'安装在项目中。

是否有任何解决方法我可以应用于此?

Setting AutoHideSplashScreen to false has no effect in Cordova 3.0.0 for iOS.
I'd like to control the splash screen by my own. Since the app needs some seconds to render the view it needs to be shown a bit longer. The 'navigator.splashscreen' is installed within the project.
Is there any workaround i can apply to this?

注意

我提到设置 FadeSplashScreen FadeSplashScreenDuration 也没有效果。

我做错了什么?

推荐答案

解决方案发布在Cordova JIRA问题CB-4374上:

A solution was posted on this Cordova JIRA Issue CB-4374:

尝试在Splashscreen插件的config.xml中添加:

Try adding this in your config.xml for the Splashscreen plugin:

<feature name="SplashScreen">
    <param name="ios-package" value="CDVSplashScreen"/>
    <param name="onload" value="true" />
</feature>

这篇关于设置AutoHideSplashScreen在iOS的Cordova 3.0.0中无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆