2015-11-17 13:42:42 +00:00
|
|
|
//
|
|
|
|
// AppDelegate.swift
|
|
|
|
// OpenSSL-for-iOS
|
|
|
|
//
|
|
|
|
// Created by Felix Schulze on 04.12.2010.
|
|
|
|
// Updated by Felix Schulze on 17.11.2015.
|
|
|
|
// Copyright © 2015 Felix Schulze. All rights reserved.
|
|
|
|
// Web: http://www.felixschulze.de
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
|
|
|
@UIApplicationMain
|
|
|
|
class AppDelegate: UIResponder, UIApplicationDelegate {
|
|
|
|
|
|
|
|
var window: UIWindow?
|
|
|
|
|
2016-09-18 08:59:49 +00:00
|
|
|
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
|
2015-11-17 13:42:42 +00:00
|
|
|
|
2016-09-18 08:59:49 +00:00
|
|
|
self.window = UIWindow(frame: UIScreen.main.bounds)
|
2015-11-17 13:42:42 +00:00
|
|
|
|
|
|
|
#if os(tvOS)
|
|
|
|
self.window?.rootViewController = ViewController(nibName: "ViewController~tv", bundle: nil)
|
|
|
|
#else
|
|
|
|
let navigationController = UINavigationController(rootViewController: ViewController())
|
2016-09-18 08:59:49 +00:00
|
|
|
navigationController.navigationBar.isTranslucent = false
|
2015-11-17 13:42:42 +00:00
|
|
|
self.window?.rootViewController = navigationController
|
|
|
|
#endif
|
|
|
|
|
|
|
|
self.window?.makeKeyAndVisible()
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|