Skip to content

Instantly share code, notes, and snippets.

@Quaggie
Created March 14, 2018 17:19
Show Gist options
  • Save Quaggie/cd264b7c5478b25f309712199582af09 to your computer and use it in GitHub Desktop.
Save Quaggie/cd264b7c5478b25f309712199582af09 to your computer and use it in GitHub Desktop.
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