使iOS应用程序与iPhone6和iPhone6 +尺寸兼容 [英] Make iOS application compatible with iPhone6 and iPhone6+ sizes

查看:109
本文介绍了使iOS应用程序与iPhone6和iPhone6 +尺寸兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个应用程序,其中我使用.xib进行布局。目前我使用两种不同的.xib,一种用于iPhone4 320 * 480,另一种用于iPhone5 320 * 568。我没有使用自动布局。

I have created an application in which I have used an .xib for layout. Currently I use two different .xibs, one for iPhone4 320*480 and one for iPhone5 320*568. I am not using auto layout.

现在iPhone6和iPhone6 +可用,有两种不同尺寸,4.7英寸和5.5英寸。

Now iPhone6 and iPhone6+ are available, with two different sizes, 4.7 inch and 5.5 inch.

如何使我的应用与这些尺寸兼容?

How can I make my app compatible with these sizes?

推荐答案

最简单的方法是下载Xcode 6 GM(这是今天发布的)然后运行你的应用程序,看看它的外观。您可能不需要做任何事情,因为iPhone 6和iPhone 6 Plus将无缝扩展大多数旧版应用程序。参考: http://www.imore.com/all-13-million-ios-apps-will-instantly-scale-iphone-6-and-iphone-6-plus

Easiest way is to download Xcode 6 GM (which was released today) and then run your app and see how it looks. You may not have to do anything at all as iPhone 6 and iPhone 6 Plus will scale most older apps seamlessly. Reference: http://www.imore.com/all-13-million-ios-apps-will-instantly-scale-iphone-6-and-iphone-6-plus

我也在我的应用程序(专为4英寸屏幕设计)上尝试了这一点,它在模拟器中的iPhone 6和iPhone 6 Plus都运行良好。

I also tried this out myself on my app (designed for 4" screens) and it worked well in both the iPhone 6 and iPhone 6 Plus in the simulator.

这篇关于使iOS应用程序与iPhone6和iPhone6 +尺寸兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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