title: Use a button to turn a page in a page-based ios application?
body: <p>In the IOS developer library, instructions say:</p>
  
  <blockquote>
    <p>To directly control what content is being displayed, call the <code>setViewControllers:direction:animated:completion:</code> method</p>
  </blockquote>
  
  <p>And that's what I'm trying to do, without success.  </p>
  
  <p>Here's what I've tried in my <code>RootViewController.m</code>:</p>
  
  <pre><code>NSLog(@"%s", __FUNCTION__ );
  [self.pageViewController setViewControllers:
       [NSArray arrayWithObjects:
          [self.storyboard instantiateViewControllerWithIdentifier:
              @"AlbumPageViewController4"],nil]
              direction:UIPageViewControllerNavigationDirectionForward 
              animated:YES completion:nil];
  </code></pre>
  
  <p>I know the AlbumPageViewController.m button is calling it as it displays in the NSLog.  But nothing happens, no crash, no errors, no page curls.  My spine location is UIPageViewControllerSpineLocationMin so I think I only need to pass it 1 view controller. </p>
  
  <p>I have tried 2, but that  doesn't work either.  </p>
  
  <p>How can I have a button that allows me to "let the user jump to a specific location in the content" just like the Docs say?</p>