title: UIScrollView won't autorotate
body: <p>My app design requires the same scrolling functionality found in the iPhone's native Photos app when browsing photos in full screen. Specifically:</p>
  
  <ul>
  <li>Each view snaps into place as the view is swiped</li>
  <li>Scrolling happens in only one direction</li>
  <li>Rotating the iPhone rotates the entire scrolling region as well such that the frame of each subview (photos, in Apple's case) rotates in-place <em>and</em> paging is still in the same direction (left-to-right)</li>
  </ul>
  
  <p>I started to use Apple's <a href="http://developer.apple.com/iphone/library/samplecode/PageControl/index.html#//apple_ref/doc/uid/DTS40007795" rel="nofollow noreferrer">sample PageControl code</a> as a launching point, and everything was going swimmingly until I attempted adding autorotation to the code. My sense from the docs was that all I had to do to get autorotation working was to add this to the sample code's <em>MyViewController.m</em></p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
   return YES;
  }
  </code></pre>
  
  <p>While that does seem to cause the subviews' backgrounds to rotate, the UILabels and the enclosing UIScrollView stay fixed so that, from a user perspective, paging through the views now requires up/down flicking instead of left/right.</p>