Thursday, 13 October 2016

Adding a View to Window in Swift

In didFinishLaunchWithOptions


window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        let mainViewController = ViewController(nibName: "ViewController", bundle: nil)
        
        window?.rootViewController = mainViewController
        window?.makeKeyAndVisible()


In Project GoTo General Deployment Info Select Main Interface to clear.

No comments:

Post a Comment