/samples/TileIssue/Classes/TileIssueAppDelegate.m

http://github.com/route-me/route-me · Objective C · 42 lines · 19 code · 15 blank · 8 comment · 0 complexity · 59334303432f98cd0a1c1a279c7e6ce2 MD5 · raw file

  1. //
  2. // TileIssueAppDelegate.m
  3. // TileIssue
  4. //
  5. // Created by olivier on 4/8/09.
  6. // Copyright __MyCompanyName__ 2009. All rights reserved.
  7. //
  8. #import "TileIssueAppDelegate.h"
  9. @implementation TileIssueAppDelegate
  10. @synthesize window;
  11. @synthesize tileIssueViewController;
  12. @synthesize navController;
  13. - (void)applicationDidFinishLaunching:(UIApplication *)application {
  14. // Override point for customization after application launch
  15. [self setTileIssueViewController:[[TileIssueViewController alloc]init]];
  16. UINavigationController *aNavigationViewCtrl = [[UINavigationController alloc]initWithRootViewController:[self tileIssueViewController]];
  17. [self setNavController:aNavigationViewCtrl];
  18. [aNavigationViewCtrl release];
  19. [window setBackgroundColor:[UIColor blueColor]];
  20. [window addSubview:[navController view]];
  21. [window makeKeyAndVisible];
  22. }
  23. - (void)dealloc {
  24. [window release];
  25. [super dealloc];
  26. }
  27. @end