-(void)setupPageController{self.pageController=[[UIPageViewControlleralloc]initWithTransitionStyle:UIPageViewControllerTransitionStyleScrollnavigationOrientation:UIPageViewControllerNavigationOrientationVerticaloptions:options];self.pageController.view.frame=CGRectMake(0,64,kScreen_Width,kScreen_Height-64-49);self.pageController.dataSource=self;self.pages=@[self.mainVC,self.bottomVC];[self.pageControllersetViewControllers:@[self.pages.firstObject]direction:UIPageViewControllerNavigationDirectionForwardanimated:YEScompletion:nil];[selfaddChildViewController:self.pageController];[self.viewaddSubview:self.pageController.view];}#pragma mark - UIPageViewControllerDataSource-(UIViewController*)pageViewController:(UIPageViewController*)pageViewControllerviewControllerBeforeViewController:(UIViewController*)viewController{if([viewControllerisKindOfClass:[ViewController1class]]){returnnil;}if([viewControllerisKindOfClass:[ViewController2class]]){returnself.pages[0];}returnnil;}-(UIViewController*)pageViewController:(UIPageViewController*)pageViewControllerviewControllerAfterViewController:(UIViewController*)viewController{if([viewControllerisKindOfClass:[ViewController1class]]){returnself.pages[1];}if([viewControllerisKindOfClass:[ViewController2class]]){returnnil;}returnnil;}