How to open another view from View Based Application
<p>I've created a new view based application and added button on it and I want to open another view on button click. I've added another view and trying opening from there but nothing happening. Please help me explaining step by step process of adding and opening second view from first view as I am pretty new in Iphone App development. I must be missing something may be UINavigationViewController etc. I am using the code below to open the second view.</p>

<pre><code>- (IBAction)ShowList:(id) sender

{   
        if(self.atmList == nil)

{

ATMList *viewController = [[ATMList alloc] initWithNibName:@"ATM List" bundle:nil];

self.atmList = viewController;

[viewController release];           

}   
        [self.navigationController pushViewController:atmList animated:YES];    
}
</code></pre>

<p>Your quick reply will be highly appreciated. Thanks in advance.</p>
