Multiple calls to viewDidLoad/loadView
<p>In one of the views I launch programmatically, I see 5 different calls to '<code>loadView</code>/<code>viewdidLoad</code>' but I don't understand why this many are getting called. Can someone explain to me the mechanics behind this?</p>

<p>I launch the view in the parent <code>UIViewController</code> (part of a <code>TabBar</code> + <code>NavigationBar</code> application) instance in the following manner:</p>

<pre><code>MainEditController *editController = [[MainEditController alloc] initWithNibName:@"MainEditView" bundle:nil];           
[self.navigationController pushViewController:editController animated:YES];         
[editController release];   
</code></pre>

<p>I then log <code>MainEditController's</code> <code>viewDidLoad</code> and <code>loadView</code> methods (and invoking their respective super methods).</p>

<p>The '<code>MainEditView</code>' nib contains 3 items: 
-File's Owner (of type <code>MainEditController</code>), 
-First Responder (of type <code>UIResponder</code>)
-View (of type <code>UIView</code>)</p>

<p>The view outlet is connected to the File's Owner and the View has no elements in it. What I intend to do is add several subs views to the main view and display one of the subviews based on a specific condition.</p>

<p>I thought both <code>viewDidLoad</code> and <code>loadView</code> would get called as many views (1 in this case) within the controller but that doesn't seem to be a valid assumption.</p>
