Instance Method

initWithTransitionStyle:navigationOrientation:options:

Initializes a newly created page view controller.

Declaration

- (instancetype)initWithTransitionStyle:(UIPageViewControllerTransitionStyle)style navigationOrientation:(UIPageViewControllerNavigationOrientation)navigationOrientation options:(NSDictionary<UIPageViewControllerOptionsKey, id> *)options;

Parameters

style

The style for transitions between pages.

navigationOrientation

The orientation of the page-by-page navigation.

options

A dictionary of options. For keys, UIPageViewControllerOptionsKey.

Return Value

The initialized page view controller.

Discussion

After initialization, use the setViewControllers:direction:animated:completion: method to set the initial view controllers.

See Also

Initializing a Page View Controller

UIPageViewControllerOptionsKey

Keys for creating the page view controller.