将应用程序从iPhone 5转换为iPhone 4设备 [英] Convert app from iPhone 5 to iPhone 4 device

查看:97
本文介绍了将应用程序从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.

这篇关于将应用程序从iPhone 5转换为iPhone 4设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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