Protocol: UIPageViewControllerDataSource

Overview

The UIPageViewControllerDataSource protocol is adopted by an object that provides view controllers to the page view controller on an as-needed basis, in response to navigation gestures.Returns the view controller after the given view controller. (required)Returns the view controller before the given view controller. (required)Returns the number of items to be reflected in the page indicator. (required)Returns the index of the selected item to be reflected in the page indicator. (required)

Instance Method Summary (collapse)

Instance Method Details

- (UIViewController) pageViewController(pageViewController, viewControllerAfterViewController:viewController)

Returns the view controller after the given view controller. (required)

Parameters:

Returns:

  • (UIViewController)

    The view controller after the given view controller, or nil to indicate that there is no next view controller.

- (UIViewController) pageViewController(pageViewController, viewControllerBeforeViewController:viewController)

Returns the view controller before the given view controller. (required)

Parameters:

Returns:

  • (UIViewController)

    The view controller before the given view controller, or nil to indicate that there is no previous view controller.

- (Integer) presentationCountForPageViewController(pageViewController)

Returns the number of items to be reflected in the page indicator. (required)

Parameters:

Returns:

  • (Integer)

    The number of items to be reflected in the page indicator.

- (Integer) presentationIndexForPageViewController(pageViewController)

Returns the index of the selected item to be reflected in the page indicator. (required)

Returns: