When you create an application from the View Based on template, the following code is generated in the iPhoneSDK. I basically understand what is happening here, but I don’t see where the instance of the window and the viewController are being created. Any help?
@class jojojViewController;
@interface jojojAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
jojojViewController *viewController;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet jojojViewController *viewController;
@end
=================================================
@implementation Test6AppDelegate
@synthesize window,mainView;
- (void)applicationDidFinishLaunching:(UIApplication *)application {
[window makeKeyAndVisible];
}
- (void)dealloc {
[window release];
[super dealloc];
}
@end
source
share