Xcode 目前版本为6.1.1,创建项目的时候没有 Empty Application 模板
如果需要,可以按以下方式获得
1. 创建一个Single View Application 项目;
2. 删掉 Main.storyboard 和 LuanchScreen.xib 文件;
3. 打开 Info.plist 文件,删掉 Main storyboard file base name 和 Luanch screen interface base name 两项;
4. 打开 AppDelegate.m 文件,修改 didFinishLaunchingWithOptions 方法如下:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
ViewController *mainController = [ViewController new];
[self.window setRootViewController:mainController];
return YES;
}