1

my UIPageViewController class conforms to UIPageViewControllerDataSource protocol and yet UIPageControl is not visible.

I've attached screen representing segues between UIPageViewController and it's child UIViewController's which are added by setViewControllers method.

enter image description here

Question is why Page Control is not shown and what can i do with it except adding UIPageControl instance to view myself ?

4

2 回答 2

1

出于某种原因,UIPageControl 似乎只在转换样式设置为“滚动”时出现——非常令人沮丧!(希望我错了?)单击您的 UIPageViewController(“主页视图控制器”?)以查看页面视图控制器下的选项。

于 2014-01-14T07:02:40.890 回答
0

确保您已经实现了可选-presentationCountForPageViewController:-presentationIndexForPageViewController:数据源方法。

UIPageViewController.h 的要求很清楚:

如果实现了这两种方法,则页面指示器将可见,转换样式为“ UIPageViewControllerTransitionStyleScroll”,导航方向为“ UIPageViewControllerNavigationOrientationHorizontal”。

于 2015-09-04T17:14:50.060 回答