UIPageViewController没有显示点

时间:2013-08-09 10:29:33

标签: ios uipageviewcontroller

我正在使用UIPageViewController来显示两个视图,但我没有在底部获得点。

这是我正在使用的代码:

- (UIViewController *)pageViewController:(UIPageViewController *)pageViewController viewControllerAfterViewController:(UIViewController *)viewController
{ 
    if(viewController == oneViewController) {
        self.navigationController.navigationItem.title=@"Options";
        return twoViewController;
    }
    else
    {
        self.navigationController.navigationItem.title=@"All Schedule";
        return oneViewController;
    }
} 

- (NSInteger)presentationCountForPageViewController:(UIPageViewController *)pageViewController
{
    return 2;
}

1 个答案:

答案 0 :(得分:9)

您只需使用UIPageViewController即可,但只有在将过渡方式设置为UIPageViewControllerTransitionStyleScroll时才会显示

退房: this SO answer here