title: Rotate portrait to landscape and portrait mode of my view controller
body: <p>Normally my application shows all views in portrait mode except report view. Report view shows only when I am on settings view and I rotate my device to landscape mode. Now when I rotate my device to portrait mode again, report view is dismissed and settings view is displayed.</p>
  
  <pre><code>In report view 
  
  &gt; shouldAutorotateToInterfaceOrientation
  
  return ((interfaceOrientation == UIInterfaceOrientationLandscapeRight)||( interfaceOrientation == UIInterfaceOrientationLandscapeLeft));
  
  
  
  Here at settings view 
  
      shouldAutorotateToInterfaceOrientation
  
  
      if((interfaceOrientation == UIInterfaceOrientationLandscapeRight)||( interfaceOrientation == UIInterfaceOrientationLandscapeLeft))
       {  
  
       Report *report = [[Report alloc]initWithNibName:@"Report" bundle:[NSBundle mainBundle]]; 
       [self.navigationController pushViewController:report animated:YES];
       [report release];
  
       }
       return YES;
       }
  </code></pre>