iOS 6 iPhone 5 App NOT fullscreen in Phonegap Build?

泄露秘密 提交于 2019-12-22 10:38:29

问题


Hey all i am running my app and it seems to be fullscreen on my android device but it has the black bars on top/bottom on the iPhone 5.... What settings do i need to set for those to work?

The way my app looks on my android is this:

And the way it looks on my iPhone 5 is this:


回答1:


For your app add the default image for the iphone 5, Default-568h@2x.png. That automatically gets rid of the bars.




回答2:


to give a bit more detail, add this line, and the corresponding image to your config.xml file:

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



回答3:


It happens also when Launch Screen File is not specified. Go to

Target Setting --> General --> App Icons and Launch Images --> Launch Screen File --> (select) Main.Storyboard.

Done!



来源:https://stackoverflow.com/questions/15328054/ios-6-iphone-5-app-not-fullscreen-in-phonegap-build

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!