double-hit-balls/proj.ios/AppDelegate.swift

33 lines
809 B
Swift
Raw Normal View History

2017-01-17 10:55:12 +00:00
//
// AppDelegate.swift
// salmontemplate
//
// Created by Роберт Хайреев on 16/01/2017.
//
//
import Foundation
import UIKit
@UIApplicationMain
2017-01-17 14:05:44 +00:00
2017-01-17 10:55:12 +00:00
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
var viewController: UIViewController?
func applicationDidFinishLaunching(_ application: UIApplication) {
window = UIWindow(frame: UIScreen.main.bounds)
if UIDevice.current.userInterfaceIdiom == .phone {
viewController = ViewController(nibName: "ViewController_iPhone", bundle: nil)
} else {
viewController = ViewController(nibName: "ViewController_iPad", bundle: nil)
}
window?.rootViewController = viewController
window?.makeKeyAndVisible()
}
}