Revision: 23407
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 6, 2010 05:53 by matryer
Initial Code
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// create an instance of the view controller
MyViewController *vc = [[MyViewController alloc] init];
// add the view controllers view to the window
[window addSubview:[vc view]];
// release vc (we're done with it)
[vc release];
// make key and visible of course!
[window makeKeyAndVisible];
// happy times
return YES;
}
Initial URL
Initial Description
Inside the `AppDelegate`, the `didFinishLaunchingWithOptions` method can be used to just create and use a custom View Controller class.
Initial Title
didFinishLaunchingWithOptions method that just creates a custom UIViewController
Initial Tags
iphone
Initial Language
Objective C