2015年4月30日 星期四

在Xcode 6 中建立不使用Storyboard 的project

不想要使用龐大的Storyboard框架設計iOS app,於是找到可以建立一個簡單的乾淨專案的方法。
  1. Create an Single View Application with XCode6
  2. Remove Main.storyboard and LaunchScreen.xib (select them, right-click, and choose to either remove them from the project, or delete them completely).
  3. Remove "Main storyboard file base name" and "Launch screen interface file base name" entries in Info.plist file.
  4. Open AppDelegate.m, and edit application didFinishLaunchingWithOptions so that it looks like this: 

Ref: http://stackoverflow.com/questions/25783282/how-to-create-an-empty-application-in-xcode-6-without-storyboard