Created
June 13, 2016 09:44
-
-
Save psaitu/5e6091a37223f31d8f9a18cff5402728 to your computer and use it in GitHub Desktop.
Custom App Delegate
This file contains hidden or 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
| import UIKit | |
| @UIApplicationMain class WindowController: UIResponder { | |
| var window: UIWindow? = { | |
| let window = UIWindow(frame: UIScreen.mainScreen().bounds) | |
| window.rootViewController = UINavigationController(rootViewController: ViewController()) | |
| return window | |
| }() | |
| } | |
| extension WindowController: UIApplicationDelegate { | |
| func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { | |
| window?.makeKeyAndVisible() | |
| return true | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment