SplashScreen和phonegap iOS中的webview之间的空白屏幕

时间:2013-07-11 13:57:31

标签: javascript ios html5 cordova

如何避免iOS中的phonegap启动画面和webview加载阶段之间出现空白屏幕。我已按照建议的解决方案进行操作。   [1]:http://docs.phonegap.com/en/2.5.0/cordova_splashscreen_splashscreen.md.html#Splashscreen,and其他,但即使设置了时间延迟,白屏也仍然存在。

I'm loading a external mobile website inside my local index.html file using window.location.href.

由于

1 个答案:

答案 0 :(得分:0)

尝试删除页面转换,这在一定程度上帮助了我,并使用了最新的phonegap。在包含jquery移动库之前,请使用以下代码。

$(document).bind("mobileinit", function(){
$.mobile.defaultPageTransition="none"
});

编辑:糟糕,它位于启动画面和第一个屏幕之间。试试这个 link