将应用程序从iPhone 5转换为iPhone 4设备

问题描述:

如何使ios应用程序兼容iphone4设备(即3.5英寸),已经内置在iphone 5(4.0英寸屏幕)而不创建不同的xib?

How to make ios app compatible with iphone4 devices (i.e 3.5 inch), which is already built in iphone 5 (4.0 inch screen) without creating different xib?

使用Autolayout允许您的应用正确调整大小到正确的屏幕大小。
Raywenderlich.com 获得一个很好的教程你开始了和Cocoa 自动布局指南非常出色,虽然它主要是为Mac应用程序编写的。

Use Autolayout to allow your app to correctly resize to the correct screen size. Raywenderlich.com has a good tutorial to get you started, and the Cocoa Auto Layout Guide is excellent, although it is written primarily for Mac apps.