Guest User

Untitled

a guest
Jun 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. ## Presence1AppDelegate.h
  2.  
  3.  
  4. #import <UIKit/UIKit.h>
  5. #import "PersonListViewController.h"
  6. #import "PersonDetailViewController.h"
  7.  
  8. @interface Presence1AppDelegate : NSObject <UIApplicationDelegate> {
  9. UIWindow *window;
  10. PersonListViewController *listViewController;
  11.  
  12. UINavigationController *navControl;
  13. }
  14.  
  15. @property (nonatomic, retain) IBOutlet UIWindow *window;
  16. @property (nonatomic, retain) IBOutlet PersonListViewController *listViewController;
  17.  
  18. @end
  19.  
  20.  
  21.  
  22.  
  23. ## Presence1AppDelegate.m
  24.  
  25. #import "Presence1AppDelegate.h"
  26.  
  27. @implementation Presence1AppDelegate
  28.  
  29. @synthesize window;
  30. @synthesize listViewController;
  31.  
  32. - (void)applicationDidFinishLaunching:(UIApplication *)application {
  33.  
  34. [window addSubview: listViewController.view];
  35. //PersonListViewController *listView = [[PersonListViewController alloc] init];
  36.  
  37. // Override point for customization after application launch
  38. [window makeKeyAndVisible];
  39. }
  40.  
  41.  
  42. - (void)dealloc {
  43. [listViewController release];
  44. [window release];
  45. [super dealloc];
  46. }
  47.  
  48.  
  49. @end
Add Comment
Please, Sign In to add comment