PhoneGap 和 iPhone 5:去除顶部和底部的黑色条纹 [英] PhoneGap and iPhone 5: Remove top and bottom black stripes

查看:18
本文介绍了PhoneGap 和 iPhone 5:去除顶部和底部的黑色条纹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 PhoneGap 为 iOS 构建移动应用程序.最近我下载了新的 Xcode 并在 iPhone5 模拟器上运行了该应用程序.该应用程序运行良好,但应用程序的底部和顶部有两条黑色条纹.我知道这是 Apple 向后兼容并非为 iPhone 5 的 4 英寸屏幕设计的旧应用程序的方式.

I'm using PhoneGap to build a mobile app for iOS. Lately I downloaded the new Xcode and ran the app on iPhone5 simulator. The app is working well, but there are two black stripes and the bottom and top of the app. I know that this is Apple's way to be backward compatible with older apps which were not designed for iPhone 5's 4-inch screen.

是否有可能让 PhoneGap 应用充分利用新的 4 英寸屏幕 iPhone 5?

Is it possible to make a PhoneGap app fully exploit the new 4-inch screen iPhone 5?

推荐答案

所有不包含 Default-568h@2x.png 文件的应用程序都显示在一个信箱中.包含 Default-568h@2x.png 将使您的应用在 4" 视网膜设备上填满屏幕.

All apps that do not include the Default-568h@2x.png file are displayed in a letter box. Include the Default-568h@2x.png will make your app fill the screen on 4" retina devices.

PhoneGrap 的网络浏览器视图应该填满屏幕.

The web browser view of the PhoneGrap should fill the screen.

这篇关于PhoneGap 和 iPhone 5:去除顶部和底部的黑色条纹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆