-Take a window based project.Open AppDelegate.h file and
-Write this code to interface.
UINavigationController *navController;
-Before the @end write the property.
@property (nonatomic, retain) IBOutlet UINavigationController *navController;
-Synthesize to implementation file.
@synthesize navController
-Now write the code to application didFinishLaunchingWithOptions
iBlowViewController *mainViewController = [[iBlowViewController alloc] initWithNibName:@"iBlowViewController" bundle:nil];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:mainViewController];
self.navController = navigationController;
[navigationController release];
// Configure and display the window.
[window addSubview:navController.view];
[window makeKeyAndVisible];
No comments:
Post a Comment