方法
initWithTransitionStyle:navigationOrientation:options:
构造方法用于创建UIPageViewController实例,initWithTransitionStyle用于设定页面翻转的样式。
翻转样式
UIPageViewControllerTransitionStyle枚举类型定义了如下两个翻转样式。
UIPageViewControllerTransitionStylePageCurl:翻书效果样式。
UIPageViewControllerTransitionStyleScroll:滑屏效果样式。
翻页方向
navigationOrientation设定了翻页方向,UIPageViewControllerNavigationDirection枚举类型定义了以下两种翻页方式。
UIPageViewControllerNavigationDirectionForward:从左往右(或从下往上);
UIPageViewControllerNavigationDirectionReverse:从右向左(或从上往下)。
在UIPageViewController中,setViewControllers:direction:animated:c