Launch Image On Main View Controller Background Stretched
<p>I want to display the launching image(640x960) of my app on my main view controller. I added UIImageView to  the view and set the image to be the launch image. However, the image is stretched. </p>

<p>I want to be able to make the top 40px of the image to be underneath the status bar so that no streching will be needed. In other words, I want to make the image fill up the whole iphone screen, and that the status bar will simply be on top of the image.
(I think this is what happens when the launch image is initially shown when the app launches.)</p>

<p>How can this be done?</p>

<p>Another option is to use Photoshop to create the image by cutting off  40 pixels in height of the image, so it will be 640x920, and then there wouldn't be any problem, but I don't want to create another image, as I think there should be a way to do this from code.</p>

<p>EDIT: Found the solution, read my answer below.</p>
