PageRenderTime 57ms CodeModel.GetById 30ms RepoModel.GetById 0ms app.codeStats 0ms

/HelloWorld/HelloWorld/AppDelegate.m

https://bitbucket.org/achernyavsky/sandbox
Objective C | 52 lines | 27 code | 10 blank | 15 comment | 0 complexity | 20279c11685d8b7352703233f5f5ce71 MD5 | raw file
  1. //
  2. // AppDelegate.m
  3. // HelloWorld
  4. //
  5. // Created by Alex Chernyavsky on 2/22/13.
  6. // Copyright (c) 2013 Alex Chernyavsky. All rights reserved.
  7. //
  8. #import "AppDelegate.h"
  9. #import "ViewController.h"
  10. @implementation AppDelegate
  11. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  12. {
  13. self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
  14. // Override point for customization after application launch.
  15. self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
  16. self.window.rootViewController = self.viewController;
  17. [self.window makeKeyAndVisible];
  18. return YES;
  19. }
  20. - (void)applicationWillResignActive:(UIApplication *)application
  21. {
  22. // 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.
  23. // 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.
  24. }
  25. - (void)applicationDidEnterBackground:(UIApplication *)application
  26. {
  27. // 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.
  28. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
  29. }
  30. - (void)applicationWillEnterForeground:(UIApplication *)application
  31. {
  32. // 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.
  33. }
  34. - (void)applicationDidBecomeActive:(UIApplication *)application
  35. {
  36. // 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.
  37. }
  38. - (void)applicationWillTerminate:(UIApplication *)application
  39. {
  40. // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
  41. }
  42. @end