AppDelegate.swift 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // AppDelegate.swift
  3. // OpenSSL-for-iOS
  4. //
  5. // Created by Felix Schulze on 04.12.2010.
  6. // Updated by Felix Schulze on 17.11.2015.
  7. // Copyright © 2015 Felix Schulze. All rights reserved.
  8. // Web: http://www.felixschulze.de
  9. //
  10. import UIKit
  11. @UIApplicationMain
  12. class AppDelegate: UIResponder, UIApplicationDelegate {
  13. var window: UIWindow?
  14. func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
  15. self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
  16. #if os(tvOS)
  17. self.window?.rootViewController = ViewController(nibName: "ViewController~tv", bundle: nil)
  18. #else
  19. let navigationController = UINavigationController(rootViewController: ViewController())
  20. navigationController.navigationBar.translucent = false
  21. self.window?.rootViewController = navigationController
  22. #endif
  23. self.window?.makeKeyAndVisible()
  24. return true
  25. }
  26. }