Skip to content

Instantly share code, notes, and snippets.

@alfian0
Created December 11, 2016 09:17
Show Gist options
  • Save alfian0/05232aa018e1d96dae299e824543e64a to your computer and use it in GitHub Desktop.
Save alfian0/05232aa018e1d96dae299e824543e64a to your computer and use it in GitHub Desktop.
AppDelegate for Storyboard less
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
let window = UIWindow(frame: UIScreen.mainScreen().bounds)
window.backgroundColor = UIColor.whiteColor()
window.makeKeyAndVisible()
self.window = window
let vc = UIViewController()
let nc = UINavigationController(rootViewController:vc)
window.rootViewController = nc
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment