double-hit-balls/ios/doublehitballs/AppDelegate.swift
2017-01-17 15:45:21 +05:00

32 lines
808 B
Swift
Raw 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()
}
}