将简单的iPhone应用转换为通用应用 [英] Convert simple iPhone app to Universal app
本文介绍了将简单的iPhone应用转换为通用应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个非常简单的iPhone应用程序,它只使用 UIButtons
, UIlabels
, UITableView
。没有任何自定义控制器和图形。如何使用该UI将应用程序转换为通用?
I have very simple iPhone app, which uses just UIButtons
, UIlabels
, UITableView
. without any custom controllers and graphics. How can I convert app to universal with that UI?
推荐答案
首先将应用程序目标设备更新为Universal。
First update the application target device to Universal.
- 将应用程序目标设备更新为Universal。
- 检查Info.plist中的
NSMainNibFile
&NSMainNibFile~ipad
keys。 - 对于所有其他视图,请使用两个不同的NIB。例如FirstView.xib&的firstView〜ipad.xib。 iOS运行时将根据设备加载正确的视图。
- Update the application target device to Universal.
- Check the Info.plist for
NSMainNibFile
&NSMainNibFile~ipad
keys. - For all other views, have two different NIB. For example FirstView.xib & FirstView~ipad.xib. iOS runtime will load the proper view based on the device.
以下是示例项目的屏幕截图:
Here is a screenshot of a sample project:
这篇关于将简单的iPhone应用转换为通用应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文