Remove splash screen manually in PhoneGap

只谈情不闲聊 提交于 2019-12-08 17:18:43

问题


On iOS I would like to hold the splash screen up until my app is ready. I see there is a flag in the Cordova.plist called AutoHideSplashScreen -- if I turn this off how to I trigger it's removal on my own?

Thanks!


回答1:


On iOS you should be able to call navigator.splashscreen.hide();

Support for doing this in Android is available since 1.8.0.




回答2:


A quick look in Google and I found this

Basically what you have to do is:

navigator.splashscreen.hide();

On Cordova 1.6.0 is:

cordova.exec(null, null, "SplashScreen", "hide", [])


来源:https://stackoverflow.com/questions/11015993/remove-splash-screen-manually-in-phonegap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!