AppDelegate.swift 898 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // AppDelegate.swift
  3. // Example-iOS
  4. //
  5. // Created by Spiros Gerokostas on 01/03/16.
  6. // Copyright © 2016 SnapKit Team. All rights reserved.
  7. //
  8. import UIKit
  9. @UIApplicationMain
  10. class AppDelegate: UIResponder, UIApplicationDelegate {
  11. var window: UIWindow?
  12. func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
  13. self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
  14. let listViewController:ListViewController = ListViewController()
  15. let navigationController:UINavigationController = UINavigationController(rootViewController: listViewController);
  16. self.window!.rootViewController = navigationController;
  17. self.window!.backgroundColor = UIColor.whiteColor()
  18. self.window!.makeKeyAndVisible()
  19. return true
  20. }
  21. }