关于新项目删除storyboard文件的方法

首先,修改 info.plist文件 

将Main nib file base name和Launch screen interface file base name去掉

2. 将项目设置修改

 

 

3. 删除文件

4. 在AppDelegate文件加入:

   func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        self.window = UIWindow();
        let mainWindow:UIWindow! = self.window;
        mainWindow.rootViewController = ViewController.init();
        mainWindow.makeKeyAndVisible();
        return true
    }

 5.关于Launch画面,这里还没写,不过一般的都会怎么写了吧

posted @ 2018-03-15 11:23  _Roy  阅读(178)  评论(0编辑  收藏  举报