Created
December 26, 2016 01:19
-
-
Save erica/52a0d386682b595db102c60c6c4bcb3e 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
@UIApplicationMain class AppDelegate: UIResponder, | |
UIApplicationDelegate, UINavigationControllerDelegate { | |
var window: UIWindow? | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool { | |
window = UIWindow(frame: UIScreen.main.bounds) | |
if let window = window { | |
let vc = MyViewController(nibName: nil, bundle: nil) | |
let nav = UINavigationController(rootViewController: vc) | |
window.rootViewController = nav | |
window.makeKeyAndVisible() | |
} | |
return true | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment