You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
2.5 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  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. #import "NADAppDelegate.h"
  11. #import "NADViewController.h"
  12. @interface NADAppDelegate ()
  13. @end
  14. @implementation NADAppDelegate
  15. @synthesize window = _window;
  16. - (BOOL)application:(UIApplication *)application
  17. didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  18. _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
  19. [_window makeKeyAndVisible];
  20. NADViewController *viewController = [[NADViewController alloc] init];
  21. _window.rootViewController = viewController;
  22. return YES;
  23. }
  24. - (void)applicationWillResignActive:(UIApplication *)application {
  25. // Sent when the application is about to move from active to inactive state. This can occur for
  26. // certain types of temporary interruptions (such as an incoming phone call or SMS message) or
  27. // when the user quits the application and it begins the transition to the background state. Use
  28. // this method to pause ongoing tasks, disable timers, and invalidate graphics rendering
  29. // callbacks. Games should use this method to pause the game.
  30. }
  31. - (void)applicationDidEnterBackground:(UIApplication *)application {
  32. // Use this method to release shared resources, save user data, invalidate timers, and store
  33. // enough application state information to restore your application to its current state in case
  34. // it is terminated later. If your application supports background execution, this method is
  35. // called instead of applicationWillTerminate: when the user quits.
  36. }
  37. - (void)applicationWillEnterForeground:(UIApplication *)application {
  38. // Called as part of the transition from the background to the active state; here you can undo
  39. // many of the changes made on entering the background.
  40. }
  41. - (void)applicationDidBecomeActive:(UIApplication *)application {
  42. // Restart any tasks that were paused (or not yet started) while the application was inactive. If
  43. // the application was previously in the background, optionally refresh the user interface.
  44. }
  45. - (void)applicationWillTerminate:(UIApplication *)application {
  46. // Called when the application is about to terminate. Save data if appropriate. See also
  47. // applicationDidEnterBackground:.
  48. }
  49. @end