31 lines
862 B
Swift
31 lines
862 B
Swift
//
|
|||
|
|
// AppDelegate.swift
|
||
|
|
// XIONControlPanel
|
||
|
|
//
|
||
|
|
// Created by Charles Magahern on 12/29/15.
|
||
|
|
// Copyright © 2015 XION. All rights reserved.
|
||
|
|
//
|
||
|
|
|
||
|
|
import UIKit
|
||
|
|
|
||
|
|
@UIApplicationMain
|
||
|
|
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||
|
|
var window: UIWindow?
|
||
|
|
|
||
|
|
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool
|
||
|
|
{
|
||
|
|
application.statusBarHidden = true
|
||
|
|
|
||
|
|
self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
|
||
|
|
self.window?.rootViewController = MainViewController()
|
||
|
|
self.window?.makeKeyAndVisible()
|
||
|
|
|
||
|
|
return true
|
||
|
|
}
|
||
|
|
|
||
|
|
func application(application: UIApplication, supportedInterfaceOrientationsForWindow window: UIWindow?) -> UIInterfaceOrientationMask
|
||
|
|
{
|
||
|
|
return UIInterfaceOrientationMask.Portrait
|
||
|
|
}
|
||
|
|
}
|