title: iOS6 Preferred Interface Orientation Not Working
body: <p>I'm trying to work with the iOS6 Auto-rotation mess.</p>
  
  <p>I've looked at almost every single SO question relating to it, and no matter what I try, I can't get rotation working how I need it.</p>
  
  <p>The app is using storyboards, and the layout is as follows:</p>
  
  <p><code>Navigation controller ---&gt; Root view controller ---&gt; Tab view controller ---&gt; View controller ---&gt; Landscape view controller.</code></p>
  
  <p>The view controller auto-rotates when I rotate the simulator, but when segueing back to the previous view (that is set to portrait), the view becomes landscape, when it should be portrait. If I rotate the simulator back, the view auto-rotates to portrait again, but this should've been done automatically!</p>
  
  <p>I've implemented <code>(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation</code>and it doesn't get called in any view controller I put it in.</p>
  
  <p>I've subclassed the NavigationController to return the <code>topViewController</code>'s <code>shouldAutoRotate</code>, <code>supportedInterfaceOrientations</code> and <code>preferredInterfaceOrientationForPresentation</code> and auto-rotation when rotating the simulator seems to work, but <code>preferredInterfaceOrientationForPresentation</code> never does its job.</p>
  
  <p>Does anyone have a solution to this?</p>