title: Handle orientation change on iPad with one UIViewController and two XIB
body: <p>i'd like to handle orientation change on an iPad application with one UIViewController and two XIBs, let's say MenuView and MenuViewLandscape.</p>
  
  <p>So, in the willRotateToInterfaceOrientation method of the MenuViewController, how can i change XIB without using another controller for the landscape mode ?</p>
  
  <p>I'm using the following code:</p>
  
  <pre><code>if( toInterfaceOrientation != UIInterfaceOrientationPortrait ){
      MenuViewController *landscape = [[MenuViewController alloc] 
                                          initWithNibName: @"MenuViewLandscape"
                                          bundle:nil 
                                      ];        
      [self setView:landscape.view];
  }
  else {
      MenuViewController *potrait = [[MenuViewController alloc] 
                                       initWithNibName: @"MenuView"
                                       bundle:nil 
                                    ];        
      [self setView:potrait.view];
  }
  </code></pre>
  
  <p>But when i go to landscape view the XIB the landscape view controls are not properly rotated.</p>