CubeExampleAppDelegate.m 1000 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #import "CubeExampleAppDelegate.h"
  2. #import "DisplayViewController.h"
  3. @implementation CubeExampleAppDelegate
  4. @synthesize window;
  5. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  6. {
  7. self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
  8. // Override point for customization after application launch.
  9. self.window.backgroundColor = [UIColor whiteColor];
  10. rootViewController = [[DisplayViewController alloc] initWithNibName:nil bundle:nil];
  11. [self.window addSubview:rootViewController.view];
  12. self.window.rootViewController = rootViewController;
  13. [self.window makeKeyAndVisible];
  14. return YES;
  15. }
  16. - (void)applicationWillResignActive:(UIApplication *)application
  17. {
  18. }
  19. - (void)applicationDidBecomeActive:(UIApplication *)application
  20. {
  21. }
  22. - (void)applicationWillTerminate:(UIApplication *)application
  23. {
  24. }
  25. - (void)dealloc
  26. {
  27. [window release];
  28. [super dealloc];
  29. }
  30. @end