页面指​​示器UIPageViewController [英] Page Indicator UIPageViewController

查看:136
本文介绍了页面指​​示器UIPageViewController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的iPhone应用程序中有一个页面视图控制器。视图是使用Interface Builder和一个类来定义的。此类扩展

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.

推荐答案

您必须使用自己的页面指示器。

You have to use your own page indicator.

这篇关于页面指​​示器UIPageViewController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆