blob: 254dd3be76f9611903730b5a04c2c19e15675d8f [file] [log] [blame]
Anders Carlsson73119182018-03-15 09:41:03 +01001/*
2 * Copyright 2018 The WebRTC Project Authors. All rights reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#import "NADAppDelegate.h"
12
13#import "NADViewController.h"
14
15@interface NADAppDelegate ()
16@end
17
18@implementation NADAppDelegate
19
20@synthesize window = _window;
21
22- (BOOL)application:(UIApplication *)application
23 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
24 _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
25 [_window makeKeyAndVisible];
26
27 NADViewController *viewController = [[NADViewController alloc] init];
28 _window.rootViewController = viewController;
29
30 return YES;
31}
32
33- (void)applicationWillResignActive:(UIApplication *)application {
34 // Sent when the application is about to move from active to inactive state. This can occur for
35 // certain types of temporary interruptions (such as an incoming phone call or SMS message) or
36 // when the user quits the application and it begins the transition to the background state. Use
37 // this method to pause ongoing tasks, disable timers, and invalidate graphics rendering
38 // callbacks. Games should use this method to pause the game.
39}
40
41- (void)applicationDidEnterBackground:(UIApplication *)application {
42 // Use this method to release shared resources, save user data, invalidate timers, and store
43 // enough application state information to restore your application to its current state in case
44 // it is terminated later. If your application supports background execution, this method is
45 // called instead of applicationWillTerminate: when the user quits.
46}
47
48- (void)applicationWillEnterForeground:(UIApplication *)application {
49 // Called as part of the transition from the background to the active state; here you can undo
50 // many of the changes made on entering the background.
51}
52
53- (void)applicationDidBecomeActive:(UIApplication *)application {
54 // Restart any tasks that were paused (or not yet started) while the application was inactive. If
55 // the application was previously in the background, optionally refresh the user interface.
56}
57
58- (void)applicationWillTerminate:(UIApplication *)application {
59 // Called when the application is about to terminate. Save data if appropriate. See also
60 // applicationDidEnterBackground:.
61}
62
63@end