Xcode 6 EmptyApplication创建
2015-07-27 本文已影响23人
louis190
Xcode6 project创建模板中移除了 Empty Application 模板,但可以通过修改 Single View Application 模板来实现。
1.创建 Single View Application 工程
2.删除工程中的 Main.storyboard 和 LaunchScreen.xib
3.info.plist 中减去 Launch screen interface file base name 和 Main storyboard file base name两项
4.Targets -> General 选项卡中点击 Launch Images Source - Use Asset Catalog 按钮

配置这项后,应用尺寸才会根据屏幕大小适配。
5. AppDelegate 中 didFinishLaunching.. 方法下添加代码
