2016-03-01 17:58:06 +08:00
|
|
|
//
|
|
|
|
// AppDelegate.swift
|
|
|
|
// Example-iOS
|
|
|
|
//
|
|
|
|
// Created by Spiros Gerokostas on 01/03/16.
|
|
|
|
// Copyright © 2016 SnapKit Team. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
|
|
|
|
@UIApplicationMain
|
|
|
|
class AppDelegate: UIResponder, UIApplicationDelegate {
|
|
|
|
|
|
|
|
var window: UIWindow?
|
|
|
|
|
|
|
|
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
|
2016-03-01 18:14:50 +08:00
|
|
|
|
|
|
|
self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
|
|
|
|
|
|
|
|
let listViewController:ListViewController = ListViewController()
|
|
|
|
let navigationController:UINavigationController = UINavigationController(rootViewController: listViewController);
|
|
|
|
|
|
|
|
self.window!.rootViewController = navigationController;
|
|
|
|
|
|
|
|
self.window!.backgroundColor = UIColor.whiteColor()
|
|
|
|
self.window!.makeKeyAndVisible()
|
|
|
|
|
2016-03-01 17:58:06 +08:00
|
|
|
return true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|