这里的大问题是因为我无法找到任何解决方案。基本上,我想用iPhone 6 Plus(1242x2208px)的特定闪屏启动iOS模拟器应用程序(Xcode)。我打电话给那个图像" splashscreen_iphone6plus.png"
我将所有图片放在AppName / Platforms / ios / AppName / ressources / splash文件夹中,并且我已经开始应用2000次更改所有类型的参数。奇怪的是,它不断加载图像" Default-568h@2x~iphone.png"这是一个640x1136px(无论如何都不是iPhone 6+的原生尺寸)。
为了理解错误,我尝试通过在其中添加文本来更改此图像,我只是将其保存。该图像现在加载我的修改!
然而,我抛弃Default-568h@2x~iphone.png(垃圾)并将该名称插入到我真正想要加载的图像中(splashscreen_iphone6plus.png),但这并不起作用!我没有收到任何错误或其他任何我刚刚收到的图片,已修改,现在位于垃圾箱!!!!
怎么会这样?我当然做了新项目,清理项目,在模拟器中删除了应用程序等等,但我无法解决这个问题!
任何帮助都会受到赞赏,因为我在这里绝望!
谢谢,
答案 0 :(得分:0)
检查你的config.xml文件,它应具有以下配置,图像大小应完全符合下面的规定:
<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-iphone-portrait-568h-2x.png" gap:platform="ios" width="640" height="1136" />
<gap:splash src="res/screen/ios/screen-iphone-landscape-2x.png" gap:platform="ios" width="960" height="640" />
<gap:splash src="res/screen/ios/screen-iphone-landscape.png" gap:platform="ios" width="480" height="320" />
<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-portrait-2x.png" gap:platform="ios" width="1536" height="2048" />
<gap:splash src="res/screen/ios/screen-ipad-landscape-2x.png" gap:platform="ios" width="2048" height="1536" />
<gap:splash src="res/screen/ios/screen-ipad-landscape.png" gap:platform="ios" width="1024" height="768" />