Interface UIPageViewControllerDataSource


  • public interface UIPageViewControllerDataSource
    • Method Detail

      • pageViewControllerViewControllerBeforeViewController

        UIViewController pageViewControllerViewControllerBeforeViewController​(UIPageViewController pageViewController,
                                                                              UIViewController viewController)
        In terms of navigation direction. For example, for 'UIPageViewControllerNavigationOrientationHorizontal', view controllers coming 'before' would be to the left of the argument view controller, those coming 'after' would be to the right. Return 'nil' to indicate that no more progress can be made in the given direction. For gesture-initiated transitions, the page view controller obtains view controllers via these methods, so use of setViewControllers:direction:animated:completion: is not required.
      • presentationCountForPageViewController

        default long presentationCountForPageViewController​(UIPageViewController pageViewController)
        The number of items reflected in the page indicator.
      • presentationIndexForPageViewController

        default long presentationIndexForPageViewController​(UIPageViewController pageViewController)
        The selected item reflected in the page indicator.