美文网首页
Swift 3 - 实现简单的RootViewControlle

Swift 3 - 实现简单的RootViewControlle

作者: Hero_Guo | 来源:发表于2017-03-02 23:21 被阅读0次
    var rootVC: RootViewController?
    
        func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
            // Override point for customization after application launch.
            
            self.window?.backgroundColor = UIColor.white
            self.window? = UIWindow(frame: UIScreen.main.bounds)
            self.window?.makeKeyAndVisible()
            
            self.rootVC = RootViewController()
            self.window?.rootViewController = self.rootVC
            
            return true
        }
    

    相关文章

      网友评论

          本文标题:Swift 3 - 实现简单的RootViewControlle

          本文链接:https://www.haomeiwen.com/subject/cjxlgttx.html