iOS 刪除 Main.storyboard 和 LaunchScreen.storyboard


第一步:
右鍵選中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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM