Iphone changing to another view [BEGINNER]
<p>Hi I have a small doubt, I have 3 Nib Files:</p>

<ol>
<li>ConfigureContacts.xib</li>
<li>CallContactsViewController.xib</li>
<li>MainWindow.xib</li>
</ol>

<p>When Application starts I do:   </p>

<pre><code>[window addSubview:callContactsViewController.view];
[window makeKeyAndVisible];
</code></pre>

<p>So that the CallContactsViewController.xib is loaded.</p>

<p>Inside CallContactsViewController.xib there is a button, that when presses jumps to:</p>

<pre><code>-(IBAction)configureContacts:(id)sender
{
    configureContacts = [[ConfigureContacts alloc] initWithNibName:@"ConfigureContacts" bundle:nil];
    [self.view addSubview:configureContacts.view];   

}
</code></pre>

<p>The idea is that when the button is pressed it goes to the "next window" which is the other .xib file. Is this the correct way of changing through xibs ? Am I wasting memory here ?</p>

<p>Thanks in advance</p>
