title: UIPageViewController programmatically turning pages does not update Page Indicator
body: <p>When I programmatically turn the page in a UIPageViewController using a method similar to <a href="https://stackoverflow.com/a/8678367/1103584">this answer</a>, the Page Indicators are not updated.  Swiping to the next/previous page updates the page indicators as expected.  What do I need to do to update the Page Indicators when programmatically turning the page?  i.e. How do I set the current "index" after programmatically changing the page so the Page Indicators know which page indicator to show as active?</p>
  
  <p>I noticed in the documentation, the following is stated:</p>
  
  <blockquote>
    <p>If both of the methods in “Supporting a Page Indicator” are implemented and the page view controller’s transition style is UIPageViewControllerTransitionStyleScroll, a page indicator is visible. Both of these methods are called after the setViewControllers:direction:animated:completion: method is called. <strong>After gesture-driven navigation, these methods are not called.</strong> The index is updated automatically and the number of view controllers is expected to remain constant.</p>
  </blockquote>
  
  <p>(see bold text above)</p>
  
  <p><a href="http://developer.apple.com/library/ios/#documentation/uikit/reference/UIPageViewControllerDataSourceProtocolRef/UIPageViewControllerDataSource.html#//apple_ref/occ/intf/UIPageViewControllerDataSource" rel="nofollow noreferrer">UIPageViewController documenatation</a></p>
  
  <p>Does this imply that if you don't use a gesture to turn the page, then there is no way to update the UIPageIndicators?</p>
  
  <p>Thanks in advance for your help.</p>