title: Change UIPageViewController page programmatically
body: <p>I am using UIPageViewController having Next button that have same functionality like swipe to next view.</p>
  
  <pre><code>@IBAction func next(sender: UIButton!) {
  
      let pageContentViewController = pageViewController.viewControllers![0] as! WelcomeViewController
      let index = pageContentViewController.pageIndex + 1
  
      if index &lt; titleArray.count {
          let vctoMove = self.viewControllerAtIndex(index) as WelcomeViewController
          let viewControllers = NSArray(objects: vctoMove)
          pageViewController.setViewControllers(viewControllers as? [UIViewController], direction: .Forward, animated: true, completion: nil)
      }
  }
  </code></pre>