title: Change to landscape in Xcode 4.5 iOS 6.0 with status bar
body: <p>I've been using Xcode 4.4 for my project for iOS and I wanted one of my screens to be permanently landscape so I used </p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  {
      return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
  }
  </code></pre>
  
  <p>and it worked just fine and since I updated to Xcode 4.5 and iOS 6.0 it didn't work at all so I found out that I have to use the new functions and now I have:</p>
  
  <pre><code>- (NSUInteger)supportedInterfaceOrientations {
          return UIInterfaceOrientationMaskLandscapeRight; 
  }
  
  - (BOOL)shouldAutorotate {
          return YES;
  }
  </code></pre>
  
  <p>so now my screen is landscape but the status bar remains in its place like the screen is still in portrait mode.</p>
  
  <p>I don't know how to fix it.</p>
  
  <p>Thank you.</p>