title: Refresh Interface Orientation of UIViewController
body: <p>I have a view controller with a paging scrollview displaying pages of data to the user. I'm having trouble getting the scroll view to "snap to" pages when the user rotates the device while in the middle of scolling to the next/previous page.</p>
  
  <p>I notice in the native photo viewer app that rotation is essentially disabled during scrolling. I'm trying to mimic this behaviour.</p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  {
      if (isScrolling)
          return interfaceOrientation == self.interfaceOrientation;
      return YES;
  }
  </code></pre>
  
  <p>The problem is I need some way to tell the runtime that I am ready to change my orientation. Something like setNeedsLayout but for View Controllers.</p>
  
  <pre><code>- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView
  {
      isScrolling = NO;
      //something to get the interface orientation updated
  }
  </code></pre>
  
  <p>It's a small problem but it's driving me nuts. Any ideas?</p>