通用应用 - 涉及的步骤
步骤 1 - 创建一个简单的 View based application.
步骤 2 - 更改文件名 ViewController.xib 归档到 ViewController_iPhone.xib 如下图右侧的文件检查器所示。
步骤 3 - 选择文件→新建→文件...然后选择小节 "User Interface" 并选择 View. 点击下一步。
步骤 4 − 选择设备系列为 iPad 然后点击下一步。
步骤 5 − 将文件另存为 ViewController_iPad.xib 并选择创建。
步骤 6 - 在屏幕中央添加一个标签 ViewController_iPhone.xib 和 ViewController_iPad.xib.
步骤 7 - 在 ViewController_iPad.xib,选择 identity inspector 并将自定义类设置为 ViewController.
步骤 8 - 更新 AppDelegate.m 中的 application:DidFinishLaunching:withOptions 方法如下 -
步骤 9 − 将项目摘要中的设备更新为 Universal 如下图所示 -
