title: IOS 6 orientation issue in universal app
body: <p>In my universal app i need to handle different orientation for iphone and ipad. For ipad i need to allow landscape orientation and for iphone portrait alone. I have returned below code at first </p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  {
      if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
          return UIInterfaceOrientationIsPortrait(interfaceOrientation);
  
      return UIInterfaceOrientationIsLandscape(interfaceOrientation);
  }
  </code></pre>
  
  <p>is working fine in IOS 5 But in IOS 6 autorotate method is not at all fired. After that i have changed the method to,</p>
  
  <pre><code>-(BOOL)shouldAutorotate
  {
      return NO;
  }
  
  -(NSUInteger)supportedInterfaceOrientations
  {
      return UIInterfaceOrientationMaskAll;
  }
  
  - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
  {
      return UIInterfaceOrientationMaskPortrait;
  }
  </code></pre>
  
  <p>even this methods are not at all fired in IOS 6. </p>
  
  <p>My plist setting is</p>
  
  <p><img src="https://i.stack.imgur.com/WligY.png" alt="enter image description here"></p>
  
  <p>i need to handle both orientation [iPhone-portrait,iPad-landscape] for both IOS 5 and IOS 6. Please guide me to fix this issue.</p>