title: Selective Autorotation within a UINavigationController and UITabBarController
body: <p>Greetings! Here's the scenario.</p>
  
  <p>Starting with a navigation controller (and no tab bar is present - it is hidden from a previous view controller push), I init a new view controller and push it onto the nav controller stack. This new VC contains a lonesome <strong>UIView</strong> into which I programmatically add a UIScrollView with the same frame. (I wanted to avoid the <strong>UIView</strong>, but this was the only way I could get <strong>self.view</strong> to be assigned to something. I suspect casting a <strong>UIScrollView</strong> to <strong>UIView</strong> in <strong>viewDidLoad</strong> is not advisable.)</p>
  
  <p>So now we have a nav bar, and a scroll view. I've set it up to scroll through some images (big surprise, I know!), and that works just fine. Now I want this to support autorotation. So I respond in the VC like so:</p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
      return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
  }
  </code></pre>
  
  <p>Compile and run. Aaaand ... nothing. Obviously I've done something wrong.</p>
  
  <p>Now, I've already read the post regarding <a href="https://stackoverflow.com/questions/970482/uinavigationcontroller-and-autorotation">UINavigationController and autorotation</a>, and I get the sneaking suspicion that I'm going about this the wrong way, and making it way more complicated than necessary.</p>
  
  <p>There's got to be a better way to present a <strong>UIScrollView</strong> that supports autorotation. Perhaps the Nav Controller is getting in the way, but I'm not sure how to get around it.</p>
  
  <p>Ideally, I'd like something without any kind of nav bar showing. Instead, we have a toolbar/status bar that appears/hides from the top (like you see when playing video). If the nav bar must remain - or if that's REALLY a shorter-height nav bar I'm seeing when playing video vs. a toolbar, however do I get the thing to rotate around? The thing is, I only want it to rotate in this particular mode, when viewing the pix. Not at any other time.</p>
  
  <p>Dare I try using a modal VC? (Yeccch - no, that can't be right either. Plus it has a nav bar anyway.)</p>