-
Notifications
You must be signed in to change notification settings - Fork 10
/
AppDelegate.m
49 lines (32 loc) · 1.08 KB
/
AppDelegate.m
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
46
47
48
49
//
// AppDelegate.m
// ARDrone
//
// Created by Chris Eidhof on 29.12.13.
// Copyright (c) 2013 Chris Eidhof. All rights reserved.
//
#import "AppDelegate.h"
#import "DroneCommunicator.h"
#import "ViewController.h"
@import MultipeerConnectivity;
@interface AppDelegate ()
@property (nonatomic, strong) DroneCommunicator *communicator;
@property (nonatomic, strong) ViewController *vc;
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
self.vc = [[ViewController alloc] initWithNibName:nil bundle:nil];
self.window.rootViewController = self.vc;
[UIApplication sharedApplication].idleTimerDisabled = YES;
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application;
{
[self.communicator land];
}
@end