iOS 6 iPhone 5应用程序不是Phonegap Build的全屏?

时间:2013-03-10 21:45:21

标签: android ios cordova fullscreen phonegap-build

嘿所有我正在运行我的应用程序,它似乎是我的Android设备上的全屏,但它在iPhone 5的顶部/底部有黑条....我需要为那些工作设置什么设置?

我的应用在我的机器人上的样子是:

enter image description here

它在iPhone 5上的显示方式是:

enter image description here

3 个答案:

答案 0 :(得分:8)

为您的应用添加iphone 5的默认图片Default-568h@2x.png。这会自动摆脱障碍。

答案 1 :(得分:1)

提供更多详细信息,将此行和相应的图像添加到config.xml文件中:

<gap:splash src="images/Default-568h@2x.png" gap:platform="ios" width="640" height="1136" />

答案 2 :(得分:1)

当未指定启动屏幕文件时,也会发生这种情况。 转到

目标设定 - &gt;一般 - &gt;应用程序图标和启动图像 - &gt;启动屏幕文件 - &gt; (选择)Main.Storyboard。

完成!