title: How to change the device orientation programmatically in iOS 6
body: <p>In <strong>iOS 5</strong> we could change the device orientation programmatically like so:</p>
  
  <pre><code>[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight];
  </code></pre>
  
  <p>But in <strong>iOS 6</strong> <code>setOrientation</code> is deprecated, how may i change the device orientation programmatically in <strong>iOS 6</strong>?</p>