-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAppDelegate.swift
46 lines (34 loc) · 1.01 KB
/
AppDelegate.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// AppDelegate.swift
// Game
//
// Created by Appintosh 2.0 on 4/19/16.
//
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
return true
}
func applicationWillResignActive(application: UIApplication) {
self.applicationDidTerminiate();
}
func applicationDidEnterBackground(application: UIApplication) {
self.applicationDidTerminiate();
}
func applicationWillEnterForeground(application: UIApplication) {
self.applicationDidTerminiate();
}
func applicationDidBecomeActive(application: UIApplication) {
loadedBool=true;
}
func applicationWillTerminate(application: UIApplication) {
self.applicationDidTerminiate();
}
func applicationDidTerminiate() {
loadedBool=false;
}
}
var loadedBool:Bool=false;