第一步:
右鍵選中Main.storyboard —- delete —— Move to Trash
LaunchScreen同理
第二步
點擊工程名,就是最頂級目錄
右側出現general選項卡
將Deployment info組內的Main Interface設為空
將App Icons and Launch Images 組內的 Launch Images Source設置為資源文件
(這一步很重要,如果不設置啟動頁,上下就會出現黑邊,無法適配iPhone5等大屏幕)
第三步
打開info.plist,刪除Launch screen interface file base name 和 Main storyboard file base name選項。
第四步
指定第一個頁面
打開AppDelegate.swift
在application方法中自定義
例如
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. window = UIWindow(frame: UIScreen.mainScreen().bounds) window?.backgroundColor = UIColor.whiteColor() window?.rootViewController = ViewController() window?.makeKeyAndVisible() ret
