在PhoneGap的删除闪屏为iOS和Android [英] Remove splash screen in phonegap for both ios and android
问题描述
我想完全删除启动画面为iOS和Android的应用程序的PhoneGap。在 navigator.hide()
函数只html页面的加载后的作品,但我需要在那之前删除的启动画面。请让我知道有没有一个这样做的任何选项。
I am trying to remove the splash screen completely in the phonegap application for both ios and android. The navigator.hide()
function works only after the loading of html page, but i need to remove the splash screen even before that. Please let me know is there any option available for doing this.
推荐答案
科尔多瓦1.6.0
- 在导航.splashscreen
接口已被删除未决的跨平台支持。现在,您可以使用:
Cordova 1.6.0
– the navigator.splashscreen
interface has been removed pending cross-platform support. Now You can use :
// to hide
cordova.exec(null, null, "SplashScreen", "hide", [])
// to show
cordova.exec(null, null, "SplashScreen", "show", [])
我在这里找到: iOS版的PhoneGap /科尔多瓦 - 闪屏控制
如果你想和其它一些参考检查的PhoneGap的Android闪屏只是在链接好转。
If you want some other Reference then check PhoneGap Android SplashScreen Just Got Better in the Link.
您也可以通过这个谷歌讨论。
希望这对您有所帮助。
这篇关于在PhoneGap的删除闪屏为iOS和Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!