Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
805 - 1
//
2
//  iKopterAppDelegate.m
3
//  iKopter
4
//
5
//  Created by Frank Blumenberg on 20.06.10.
6
//  Copyright de.frankblumenberg 2010. All rights reserved.
7
//
8
 
9
#import "iKopterAppDelegate.h"
10
#import "RootViewController.h"
11
#import "MKConnectionController.h"
12
 
13
 
14
@implementation iKopterAppDelegate
15
 
16
@synthesize window;
17
@synthesize navigationController;
18
 
19
 
20
#pragma mark -
21
#pragma mark Application lifecycle
22
 
23
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
24
 
25
    // Override point for customization after application launch.
26
 
27
    // Add the navigation controller's view to the window and display.
28
    [window addSubview:navigationController.view];
29
    [window makeKeyAndVisible];
30
 
31
    return YES;
32
}
33
 
34
 
35
- (void)applicationWillResignActive:(UIApplication *)application {
36
    /*
37
     Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
38
     Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
39
     */
40
}
41
 
42
 
43
- (void)applicationDidEnterBackground:(UIApplication *)application {
44
    /*
45
     Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
46
     If your application supports background execution, called instead of applicationWillTerminate: when the user quits.
47
     */
48
  [[MKConnectionController sharedMKConnectionController] stop];
49
  [self.navigationController popToRootViewControllerAnimated:NO];
50
}
51
 
52
 
53
- (void)applicationWillEnterForeground:(UIApplication *)application {
54
    /*
55
     Called as part of  transition from the background to the inactive state: here you can undo many of the changes made on entering the background.
56
     */
57
}
58
 
59
 
60
- (void)applicationDidBecomeActive:(UIApplication *)application {
61
    /*
62
     Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
63
     */
64
}
65
 
66
 
67
- (void)applicationWillTerminate:(UIApplication *)application {
68
    /*
69
     Called when the application is about to terminate.
70
     See also applicationDidEnterBackground:.
71
     */
72
}
73
 
74
 
75
#pragma mark -
76
#pragma mark Memory management
77
 
78
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {
79
    /*
80
     Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later.
81
     */
82
}
83
 
84
 
85
- (void)dealloc {
86
        [navigationController release];
87
        [window release];
88
        [super dealloc];
89
}
90
 
91
 
92
@end
93