Phonegap 3.1 iOS应用程序在加载时重新调整启动画面

时间:2013-11-24 16:23:49

标签: cordova phonegap-build

启动应用时,启动画面会出现故障并以某种方式调整自身大小。这在本地和phonegap构建中都会发生。

这是我的config.xml的一部分。我添加了那里提到的图片:

enter code here
<gap:splash gap:platform="ios" height="480" src="res/screen/ios/screen-iphone-portrait.png" width="320" />
<gap:splash gap:platform="ios" height="960" src="res/screen/ios/screen-iphone-portrait-2x.png" width="640" />
<gap:splash gap:platform="ios" height="1024" src="res/screen/ios/screen-ipad-portrait.png" width="768" />
<gap:splash gap:platform="ios" height="768" src="res/screen/ios/screen-ipad-landscape.png" width="1024" />

1 个答案:

答案 0 :(得分:0)

原来是在第一次加载时使用“res / screen / ios / screen-iphone-portrait-2x.png”而不是“res / screen / ios / screen-iphone-portrait.png”。所以我使用相同的图像“res / screen / ios / screen-iphone-portrait-2x.png”并且它不再调整大小了..