Proper initialization of UIViewControllers view frame
<p>On my iPhone project I create the GUI with code. One question that passed my mind was, is it correct to write this:</p>

<pre><code>UIView *myView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 320.0f, 460.0f)];
self.view = myView;
[myView release];
</code></pre>

<p>This would work on iPhone 4 right? Because I am not setting physical pixels when I write this, and on iPhone 4 it would be scaled automatically to 640 and 920? Or am I wrong.</p>

<p>I also wonder if there is a way of telling the main "view" that, "fill the container I belong to"? Because as this code is right now it wouldn't display correctly on iPad? </p>

<p>Help much appriciated:)</p>
