Swift 3 - 实现简单的RootViewController

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 - 实现简单的RootViewController)