How to display in landscape mode in portrait?
<p>I have a calculator screen in Iphone, when i launched it  displayed in portrait,but i want to display the calculator screen in landscape mode from portrait and also change the orientation, how? </p>

<p>I tried the source code:</p>

<pre><code>      self.view.transform = CGAffineTransformIdentity;
      self.view.transform = CGAffineTransformMakeRotation((M_PI * (90) / 180.0)); 
      self.view.bounds = CGRectMake(0.0, 0.0, 480, 320);
</code></pre>

<p>It is used first time launched only landscape mode in portrait, but change the orientation not working, any one help me.  </p>
