I want to add multiple view controller in a page controller so that view controller can scroll left and right side in page view controller.
How to do like this..?
I want to add multiple view controller in a page controller so that view controller can scroll left and right side in page view controller.
How to do like this..?
You need to implement the UIPageViewControllerDataSource. All the documentation is found here:
In the
pageViewController:viewControllerBeforeViewController:
pageViewController:viewControllerAfterViewController:
methods you return the UIViewControllers you want to show.
With the
setViewControllers:direction:animated:completion:
method from the UIPageViewController you can set the initial UIViewController.