title: iPad app force rotation
body: <p>I have a simple navigation app that has 95% of all views displayed in landscape mode. With the one view that makes sense to only show in Portrait mode i have inserted the following code in:</p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  {
      return UIInterfaceOrientationIsPortrait(interfaceOrientation);
  }
  </code></pre>
  
  <p>The problem is that when the app navigates to the view (from a landscape orientated view) it does not switch the orientation to portrait, only when the device is rotated will it snap into portrait and stay in portrait. Is it possible to force it to load in portrait mode on load of the view?</p>
  
  <p>Thanks in advane</p>