
- 首先选择 “Single View Application” 模板。
- 创建项目后删除 Main.storyboard, ViewController.h, ViewController.m 文件
- 点击项目名,在 General 面板下的 Deployment Info 分类下,删除 Main Interface 中的内容。
- 打开 AppDelegate.m, 在 application:didFinishLaunchingWithOptions: 方法中添加以下缺失的代码。
1 |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { |




近期评论