| 1234567891011121314151617181920212223242526 |
- //
- // AppDelegate.swift
- // TestSwift
- // Copyright (c) 2014 Damian Kołakowski. All rights reserved.
- //
- import Foundation
- import UIKit
- @UIApplicationMain
- class AppDelegate: UIResponder, UIApplicationDelegate {
-
- var window: UIWindow?
- var server: HttpServer?
-
- func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool {
- let server = demoServer(NSBundle.mainBundle().resourcePath)
- self.server = server
- var error: NSError?
- if !server.start(error: &error) {
- println("Server start error: \(error)")
- }
- return true
- }
- }
|