source: orbit/iOS/Orbit/Orbit/AppDelegate.m @ ab9d63b

RawEEGServoTab_Interfacepyramid
Last change on this file since ab9d63b was ab9d63b, checked in by Jonathon Horsman <jonathon@…>, 7 years ago

Initial check in to convert into a 4 tab app with tutorial, flight, advanced and support tabs.
Old controller code remains for now but about to be removed

  • Property mode set to 100644
File size: 2.8 KB
Line 
1//
2//  AppDelegate.m
3//  Orbit
4//
5//  Copyright (c) 2012 Puzzlebox Productions, LLC. All rights reserved.
6//  Originally created by Jonathon Horsman.
7//
8//  This code is released under the GNU Public License (GPL) version 2
9//  For more information please refer to http://www.gnu.org/copyleft/gpl.html
10//
11
12#import "AppDelegate.h"
13#import "SignalConverter.h"
14#import "CorePlot-CocoaTouch.h"
15
16@implementation AppDelegate
17
18@synthesize signalConverter;
19
20- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
21{
22    // Override point for customization after application launch.
23    signalConverter = [[SignalConverter alloc] init];
24//    [[TGAccessoryManager sharedTGAccessoryManager] setupManagerWithInterval:0.05];
25//    [[TGAccessoryManager sharedTGAccessoryManager] setDelegate:(ViewController *)self.window.rootViewController];
26    return YES;
27}
28                                                       
29- (void)applicationWillResignActive:(UIApplication *)application
30{
31    // 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.
32    // 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.
33//    ViewController *rootController = (ViewController *)self.window.rootViewController;
34//    [rootController appClosed];
35}
36
37- (void)applicationDidEnterBackground:(UIApplication *)application
38{
39    // 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.
40    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
41}
42
43- (void)applicationWillEnterForeground:(UIApplication *)application
44{
45    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
46}
47
48- (void)applicationDidBecomeActive:(UIApplication *)application
49{
50    // 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.
51//    ViewController *rootController = (ViewController *)self.window.rootViewController;
52//    [rootController appForegrounded];
53}
54
55- (void)applicationWillTerminate:(UIApplication *)application
56{
57    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
58    [[TGAccessoryManager sharedTGAccessoryManager] teardownManager];
59}
60
61@end
Note: See TracBrowser for help on using the repository browser.