Guest User

Untitled

a guest
Jan 21st, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. //  MinecraftAppDelegate.m
  3. //  Minecraft
  4. //
  5. //  Created by Tobias on 2011-08-02.
  6. //  Copyright 2011 __MyCompanyName__. All rights reserved.
  7. //
  8.  
  9. #import "MinecraftAppDelegate.h"
  10.  
  11. #import "MinecraftViewController.h"
  12.  
  13. @implementation MinecraftAppDelegate
  14.  
  15. @synthesize window = _window;
  16. @synthesize viewController = _viewController;
  17.  
  18. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  19. {
  20.     // Override point for customization after application launch.
  21.      
  22.     self.window.rootViewController = self.viewController;
  23.     [self.window makeKeyAndVisible];
  24.     return YES;
  25. }
  26.  
  27. - (void)applicationWillResignActive:(UIApplication *)application
  28. {
  29.     /*
  30.      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.
  31.      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.
  32.      */
  33. }
  34.  
  35. - (void)applicationDidEnterBackground:(UIApplication *)application
  36. {
  37.     /*
  38.      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.
  39.      If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
  40.      */
  41. }
  42.  
  43. - (void)applicationWillEnterForeground:(UIApplication *)application
  44. {
  45.     /*
  46.      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.
  47.      */
  48. }
  49.  
  50. - (void)applicationDidBecomeActive:(UIApplication *)application
  51. {
  52.     /*
  53.      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.
  54.      */
  55. }
  56.  
  57. - (void)applicationWillTerminate:(UIApplication *)application
  58. {
  59.     /*
  60.      Called when the application is about to terminate.
  61.      Save data if appropriate.
  62.      See also applicationDidEnterBackground:.
  63.      */
  64. }
  65.  
  66. - (void)dealloc
  67. {
  68.     [_window release];
  69.     [_viewController release];
  70.     [super dealloc];
  71. }
  72.  
  73. @end
Add Comment
Please, Sign In to add comment