Page Indicator UIPageViewController

烈酒焚心 提交于 2019-12-04 05:04:37

问题


I have a page view controller in my iPhone app. The view is defined using the Interface Builder and a class to manage it. This class extends

UIPageViewController <UIPageViewControllerDataSource,UIPageViewControllerDelegate>

I used the following functions for page indicator.

-(NSInteger)presentationCountForPageViewController:(UIPageViewController *)pageViewController {}
-(NSInteger)presentationIndexForPageViewController:(UIPageViewController *)pageViewController {}

However, the number of pages in my application increased and the page indicator goes out of my current view (the starting and the ending dots). Is there any way I can use similar display to line break in labels etc. Any alternatives to page indicator are also welcome.


回答1:


You have to use your own page indicator.



来源:https://stackoverflow.com/questions/17235816/page-indicator-uipageviewcontroller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!