iOS 6 iPhone 5 App NOT fullscreen in Phonegap Buil

2019-05-13 12:16发布

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:

enter image description here

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

enter image description here

3条回答
欢心
2楼-- · 2019-05-13 12:36

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楼-- · 2019-05-13 12:46

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!

查看更多
We Are One
4楼-- · 2019-05-13 12:48

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

查看更多
登录 后发表回答