zyterence
9/8/2016 - 10:20 AM

swift_application_didFinishLaunchingWithOptions.swift

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
    
    self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
    guard let window = self.window else { return true }
    
    let rootView = ViewController()
    window.rootViewController = rootView
    window.backgroundColor = UIColor.whiteColor()
    window.makeKeyAndVisible()
    return true
}