Xcode 6 创建 Empty Application

1、创建一个 Single View Application;

2、删除工程目录下的 Main.storyboard 和 LaunchScreen.xib;

3、打开 Supporting Files 下的 Info.plist,删除 Launch screen interface file base name 和 Main storyboard file base name 两项;

4、点击工程 -> 点击Target下面的第一项 -> 选择General选项卡 -> 点击 Use Asset Catalog 按钮,弹出的对话框点击 Migrate;

5、在 AppDelegate 的 application: didFinishLaunchingWithOptions: 方法的return语句前,添加以下三句:

// Objective C
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
原文地址:https://www.cnblogs.com/mobilefeng/p/4299007.html