title: Device Rotation Not Working in IOS 6 Works Well in IOS 5 am I doing anything wrong?
body: <pre><code>-(BOOL)shouldAutorotate
  {
  
  
      if (appDelegate.isOrientationSupport)
      {
          return YES;
      }
      else
      {
          return NO;
      }
  
  }
  
  -(NSInteger)supportedInterfaceOrientations{
      NSInteger mask = 0;
      if ([self shouldAutorotateToInterfaceOrientation: UIInterfaceOrientationLandscapeRight])
          mask |= UIInterfaceOrientationMaskLandscapeRight;
      if ([self shouldAutorotateToInterfaceOrientation: UIInterfaceOrientationLandscapeLeft])
          mask |= UIInterfaceOrientationMaskLandscapeLeft;
      if ([self shouldAutorotateToInterfaceOrientation: UIInterfaceOrientationPortrait])
          mask |= UIInterfaceOrientationMaskPortrait;
      if ([self shouldAutorotateToInterfaceOrientation: UIInterfaceOrientationPortraitUpsideDown])
          mask |= UIInterfaceOrientationMaskPortraitUpsideDown;
      return mask;
  }
  </code></pre>
  
  <p>Where I am doing wrong?</p>