Created
March 14, 2018 17:19
-
-
Save Quaggie/cd264b7c5478b25f309712199582af09 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: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
// Monta a window de acordo com o tamanho da tela | |
window = UIWindow(frame: UIScreen.main.bounds) | |
// Instancia o ViewController | |
let vc = ViewController() | |
// Bota como tela principal dentro de uma navigationController | |
window?.rootViewController = UINavigationController(rootViewController: vc) | |
// Faz a window ser exibida | |
window?.makeKeyAndVisible() | |
return true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment