title: PageviewController is not showing the viewcontrollers in correct order
body: <p>I am trying to work with a <code>PageviewController</code>. I have 4 <code>ViewControllers</code> but they are all different. In one I have an image, in the second I have a tableview,... </p>
  
  <p>I want to scroll through it with a <code>pageviewController</code>. So what I did is the following. I've added them to a <code>modelArray</code>.</p>
  
  <pre><code>ViewOneViewController *viewOne = (ViewOneViewController *)[self.storyboard instantiateViewControllerWithIdentifier:@"ViewOne"];
  ViewTwoViewController *viewTwo = (ViewTwoViewController *)[self.storyboard instantiateViewControllerWithIdentifier:@"ViewTwo"];
  ViewThreeViewController *viewThree = (ViewThreeViewController *)[self.storyboard instantiateViewControllerWithIdentifier:@"ViewThree"];
  ViewFourViewController *viewFour =(ViewFourViewController *) [self.storyboard instantiateViewControllerWithIdentifier:@"ViewFour"];
  
  self.modelArray = [[NSMutableArray alloc] initWithObjects:viewOne,viewTwo,viewThree,viewFour,nil];
  </code></pre>
  
  <p>Next I set up my pageviewController like this.</p>
  
  <pre><code> ViewOneViewController *cVC = [self.storyboard instantiateViewControllerWithIdentifier:@"ViewOne"];
      NSArray *viewControllers = [NSArray arrayWithObject:cVC];
      [self.pageViewController setViewControllers:viewControllers direction:UIPageViewControllerNavigationDirectionForward animated:NO completion:nil];
  </code></pre>
  
  <p>Now to browse through the pageviewViewController I have the following functions.</p>
  
  <pre><code>- (UIViewController *)pageViewController:(UIPageViewController *)pageViewController
        viewControllerBeforeViewController:(UIViewController *)viewController
  {
      indexValue--;
      if (indexValue &lt; 0) {
          return nil;
      }
      return [self.modelArray objectAtIndex:indexValue];
  }
  - (UIViewController *)pageViewController:(UIPageViewController *)pageViewController
         viewControllerAfterViewController:(UIViewController *)viewController
  {
      indexValue++;
      if (indexValue &gt; self.modelArray.count) {
          NSLog(@"crash");
          return nil;
      }
      return [self.modelArray objectAtIndex:indexValue];
  }
  </code></pre>
  
  <p>I have declared and synthesized <code>indexValue</code> as an <code>int</code>. But for some reason or another it is showing me sometimes two times the ViewOneController or it goes from ViewOneController to ViewThreeController and so on.</p>
  
  <p>Can someone help me?</p>
  
  <p>Kind regards</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>When I do this.</p>
  
  <pre><code>[self.pageViewController setViewControllers:self.modelArray direction:UIPageViewControllerNavigationDirectionForward animated:NO completion:nil];
  </code></pre>
  
  <p>It crashes with this error</p>
  
  <p><strong>'The number of view controllers provided (4) doesn't match the number required (1) for the requested transition'</strong></p>