将简单的 iPhone 应用程序转换为通用应用程序 [英] Convert simple iPhone app to Universal app

查看:40
本文介绍了将简单的 iPhone 应用程序转换为通用应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常简单的 iPhone 应用程序,它只使用 UIButtonsUIlabelsUITableView.没有任何自定义控制器和图形.如何使用该 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.

  1. 将应用程序目标设备更新为 Universal.
  2. 检查 NSMainNibFile 的 Info.plist &NSMainNibFile~ipad 键.
  3. 对于所有其他视图,有两个不同的 NIB.例如 FirstView.xib &FirstView~ipad.xib.iOS 运行时将根据设备加载正确的视图.
  1. Update the application target device to Universal.
  2. Check the Info.plist for NSMainNibFile & NSMainNibFile~ipad keys.
  3. 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屋!

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