Last active
April 28, 2017 20:35
-
-
Save danstepanov/8838aa06728046a9ca58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { | |
// Initialize the window | |
window = UIWindow.init(frame: UIScreen.mainScreen().bounds) | |
// Set Background Color of window | |
window?.backgroundColor = UIColor.whiteColor() | |
// Allocate memory for an instance of the 'MainViewController' class | |
let mainViewController = MainViewController() | |
// Set the root view controller of the app's window | |
window!.rootViewController = mainViewController | |
// Make the window visible | |
window!.makeKeyAndVisible() | |
return true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
if you like to update the nice tutorial to Swift 3:
Line 4: window = UIWindow.init(frame: UIScreen.main.bounds)
Line 7: window?.backgroundColor = UIColor.white
Cheers