title: Force iOS app to launch in landscape mode
body: <p>I am developing an app for iOS 5, which have to run in landscape mode. My problem is that I cannot get it to flip initially.</p>
  
  <p>I have tried the adding "Initial interface orientation" set to "Landscape (right home button)"
  and adding the following method to my view controller:</p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  {
  // Return YES for supported orientations
  return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
  }
  </code></pre>
  
  <p>I can wrap my head around how it is supposed to work. (I found the code <a href="http://blog.typpz.com/2010/02/12/iphone-programming-how-to-force-your-app-to-run-in-landscape-mode/">here</a>)</p>
  
  <p>I am also wondering how to use the "Supported Device Orientation" available in the Xcode 4.2 project setup, it does not seem to do anything.</p>
  
  <p>I have been looking around the website and have not been able to find an example that solves my problem.</p>
  
  <p>Thank you.</p>