title: Unable to lock device orientation on view controller with navigation controller
body: <p>I have 9 view controllers in a push navigation stack. I'd like all my view controllers to be locked to portrait but my 4th view controller to support all orientations. I have tried a number of methods, but currently have globally supported device orientations set to Portrait and have added this code to my 4th view controller in order for it to support all orientations.</p>
  
  <pre><code>-(NSUInteger)supportedInterfaceOrientations{
      return UIInterfaceOrientationMaskAll;
  }
  -(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
  return (UIInterfaceOrientationPortrait | UIInterfaceOrientationLandscapeLeft | UIInterfaceOrientationLandscapeRight);
  }
  </code></pre>
  
  <p>If I try this on a single view controller without the navigation controller it works fine. I have also attempted to implement these methods on all view controllers, setting the global settings to support all orientations and adding the code to support portrait orientations but to no avail.</p>