phonegap构建ios屏幕

phonegap构建ios屏幕,ios,ipad,cordova,splash-screen,phonegap-build,Ios,Ipad,Cordova,Splash Screen,Phonegap Build,我已经使用Phonegap build构建了一个应用程序,我正在尝试让启动屏幕在每个设备上正常工作。下面是我如何将它们包含在我的config.xml中的: <gap:splash gap:platform="ios" src="res/screen/ios/screen-ipad-portrait-2x.png" width="1536" /> <gap:splash gap:platform="ios" src="res/screen/ios/screen-ipad-port

我已经使用Phonegap build构建了一个应用程序,我正在尝试让启动屏幕在每个设备上正常工作。下面是我如何将它们包含在我的config.xml中的:

<gap:splash gap:platform="ios" src="res/screen/ios/screen-ipad-portrait-2x.png" width="1536" />
<gap:splash gap:platform="ios" src="res/screen/ios/screen-ipad-portrait.png" width="768" />
<gap:splash gap:platform="ios" src="res/screen/ios/screen-ipad-landscape-2x.png" width="2048" />
<gap:splash gap:platform="ios" src="res/screen/ios/screen-ipad-landscape.png" width="1024" />
<gap:splash gap:platform="ios" src="res/screen/ios/screen-iphone-landscape-2x.png" width="960" />
<gap:splash gap:platform="ios" src="res/screen/ios/screen-iphone-landscape.png" width="480" />
<gap:splash gap:platform="ios" src="res/screen/ios/screen-iphone-portrait-2x.png" width="640" />
<gap:splash gap:platform="ios" src="res/screen/ios/screen-iphone-portrait.png" width="320" />
<gap:splash gap:platform="ios" src="res/screen/ios/screen-iphone-portrait-568h-2x.png" width="320" />

所有图像都存在正确的文件夹中

我遇到的问题是,在我的iPad上,在横向模式下会出现正确的启动屏幕,但在纵向模式下,会出现相同的启动屏幕(拉伸和裁剪以适合)


如何显示正确的启动屏幕?

我发现了这个问题

我在每一行上设置了高度属性,并意识到其中一个图像的大小不正确:

<gap:splash gap:platform="ios" src="res/screen/ios/screen-ipad-landscape.png" width="1024" height="784" />

当我应该有:

<gap:splash gap:platform="ios" src="res/screen/ios/screen-ipad-landscape.png" width="1024" height="768" />


我很愚蠢,但希望这对其他人有帮助。

将此用于IOS-

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