1.UIPageViewController类常用属性
属性一:双面显示(doubleSided)
doubleSided为true——双面
doubleSided为false——单面
属性二:书脊位置(spineLocation)
UIPageViewControllerDelegate中的pageViewController:spineLocationForInterfaceOrientation:方法来实现
UIPageViewControllerSpineLocation定义(max、min、mid)
2.UIPageViewControllerDataSource协议
方法一:pageViewController:viewControllerBeforeViewController:
方法二:pageViewController:viewControllerAfterViewController:
3.UIPageViewControllerDelegate协议
UIPageViewControllerDelegate中的pageViewController:spineLocationForInterfaceOrientation:方法来实现
UIPageViewControllerSpineLocation定义(max、min、mid)
#import "ViewController.h"
//翻页的方向
enum DirectionForward{
ForwardBefore = 1,//向前
ForwardAfter = 2//向后
};
@interface ViewController ()<UIPag