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

33 lines
809 B
Swift
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// AppDelegate.swift
// salmontemplate
//
// Created by Роберт Хайреев on 16/01/2017.
//
//
import Foundation
import UIKit
@UIApplicationMain
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()
}
}