how do i add a navigationViewController to a UIViewController?
<p>how do i add a navigationViewController to a UIViewController? </p>

<pre><code>- (void)applicationDidFinishLaunching:(UIApplication *)application {    

    loginViewController *vc1=[[loginViewController alloc]initWithNibName:@"login" bundle:[NSBundle mainBundle]];

    rootViewController* vc2 = [[[rootViewController alloc] init] autorelease];

    UINavigationController* navController = [[[UINavigationController alloc]

                initWithRootViewController:vc2] autorelease];
    NSArray* controllers = [NSArray arrayWithObjects:vc1,navController, nil];
    //loginViewController.viewControllers = controllers;



    [window addSubview:[self.loginController view]];
    // Override point for customization after application launch
    [window makeKeyAndVisible];
}
</code></pre>

<p>i'm stuck with this.need some help...</p>
