how to change orientation of the iphone /ipod?
<p>HI  All</p>

<p>i am using the device orientation for some functionality like as </p>

<p>in stating the as we run the app it should be  in the landscape mode and in this mode if we orientate  the phone in 90 angle than it should play some video than problem comes video play by default in the landscape mode but we need it in the portrait mode than for playing video in the portrait mode we put the code </p>

<pre><code>[ mPlayer setOrientation:UIDeviceOrientationPortrait animated:NO];
</code></pre>

<p>like this even this method show a warning but it do work for playing the video in the portrait  mode.</p>

<p>now what is the problem :-as we start the app the screen we were showing in the starting of the app just comes and disaapper and it just starts playing the video and not come to that screen we even use the default rotation function to make it usable but it doesn't work </p>

<p>any suggestion thanks 
Balraj Verma</p>
