How do I push root view controller?
<p>I want to push root view controller. Why doesn't this code work?</p>

<pre><code>RootController *rootController = [[RootController alloc]initWithStyle:UITableViewStylePlain];               
[self.navigationController pushViewController:rootController animated:YES];
[rootController release];
</code></pre>

<p>I used addSubview like this before.</p>

<pre><code>- (void)cancel {
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)viewDidLoad { // this is root view controller
    [super viewDidLoad];

    UIBarButtonItem *cancelButton = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(cancel)];
    self.navigationItem.leftBarButtonItem = cancelButton;
    [cancelButton release];     
}

RootController *rootController = [[RootController alloc]initWithStyle:UITableViewStylePlain];               
UINavigationController *aNavigationController = [[UINavigationController alloc]initWithRootViewController:rootController];
self.naviController = aNavigationController;
[aNavigationController release];
[rootController release];
[self.view addSubview:[naviController view]];
</code></pre>

<p>And I added cancel button in navigation bar to go back to previous view. It doesn't work.
So, I want to push instead of add.</p>
