title: UIView rotate problem
body: <p>I have two UIViewController in my app. I switch the view between them. One is hidden other one is not. Everything goes fine except the orientation problem. In both UIViewController 
  I override this method</p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  {
      return ((interfaceOrientation == UIInterfaceOrientationLandscapeRight)||
          (interfaceOrientation == UIInterfaceOrientationLandscapeLeft));
      //return YES;
  } 
  </code></pre>
  
  <p>and set orientation to landscape in both Xib files.</p>
  
  <p>in ***Delegate.m</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions    
  {
     .......
     viewController.view.hidden=TRUE;
  
     [self.window addSubview:viewController.view];
  
     [self.window addSubview:menuController.view];
  
     .....
  }
  </code></pre>
  
  <p>if I add viewController.view first viewController.view is landscape position and it can rotate to landscapeLeft or landscapeRight. But the menuController.view is still portrait position and the view cannot rotate at all. </p>
  
  <p>if I add menuController.view first the situation is opposite. </p>
  
  <p>Why this happened? How to fix this? My app is almost done. Is there any simple way to solve this problem without make big changes to my code. </p>
  
  <p>Any suggestion is appreciated. Thank you very much!</p>