First off, nice April Fool's prank!
Second, this is a simple question but when i chose New Project -> View Based Application there is a viewController already created for me.
Now in my AppDelegate i have the following code by default:
My question is where is the viewController being alloc and init'ed?
(Purely for knowledge purposes)
Second, this is a simple question but when i chose New Project -> View Based Application there is a viewController already created for me.
Now in my AppDelegate i have the following code by default:
Code:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
// Add the view controller's view to the window and display.
[self.window addSubview:viewController.view];
[self.window makeKeyAndVisible];
return YES;
}
My question is where is the viewController being alloc and init'ed?
(Purely for knowledge purposes)