问题
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