title: How to make an app launch in correct landscape orientation without rotating 180° at launch?
body: <p>I am facing a weird issue with a landscape-only app. It rotates just fine to landscape left or right, but when the app launches it rotates 180 degrees instead of just launching in the correct orientation.</p>
  
  <p>I did everything I could find on StackOverflow and Google. The info plist contains:</p>
  
  <p><img src="https://i.stack.imgur.com/vBViz.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/Put6g.png" alt="enter image description here"></p>
  
  <p>Tested: iOS 7.1 completely ignores the initial launch orientation setting in the plist. I tried both left and right, and then <strong>deleted</strong> the key from info plist. No effect. App always launches in landscape with home button on the left, ignoring this setting.
  <img src="https://i.stack.imgur.com/HPsQB.png" alt="enter image description here"></p>
  
  <p>When retrying, I delete the app and clean the build.</p>
  
  <p>In App Delegate, I have this:</p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
      return UIInterfaceOrientationIsLandscape(interfaceOrientation);
  }
  
  - (NSUInteger)supportedInterfaceOrientations {
      return UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight;
  }
  
  - (BOOL)shouldAutorotate {
      return YES;
  }
  </code></pre>
  
  <p>In the root view controller:</p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
      return UIInterfaceOrientationIsLandscape(interfaceOrientation);
  }
  
  - (NSUInteger)supportedInterfaceOrientations {
      return UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight;
  }
  
  - (BOOL)shouldAutorotate {
      return YES;
  }
  </code></pre>
  
  <p>Some landscape apps like Tiny Wings launch in the correct orientation so I know something is wrong with my project. What is the secret sauce to get this working?</p>