In the Apple sample code, the AppDelegate contains window and navigationController as instance variable. (http://developer.apple.com/library/ios/#samplecode/TableViewSuite/Listings/1_SimpleTableView_Classes_SimpleTableViewAppDelegate_h.html%23//apple_ref/doc/uid/DTS40007318-1_SimpleTableView_Classes_SimpleTableViewAppDelegate_h-DontLinkElementID_5)
@interface SimpleTableViewAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
UINavigationController *navigationController;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) UINavigationController *navigationController;
The code generated by XCode4 is only as simple as
@interface SimpleTableViewAppDelegate : NSObject <UIApplicationDelegate> {
}
- Why the two instances variables can be missed?
- Why only the *window need to be declared as IBOutlet, but not *navigationController?
Thanks.