在最后一页隐藏 UIPageViewController 的计数器点 [英] Hide counter dots of UIPageViewController on last page

查看:27
本文介绍了在最后一页隐藏 UIPageViewController 的计数器点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 PageViewController 创建第一个游览视图,在视图底部显示计数器点.

I'm making a first tour view with a PageViewController, showing the counter dots at the bottom of the view.

我该怎么办

  1. 隐藏点仅在最后一页 ?和
  2. 调整视图的高度以适应全屏?

我的最后一页将是我的应用程序的登录视图.

My last page will be the log in view of my app.

谢谢.

推荐答案

您可以使用 UIPageControl 并在到达最后一页时隐藏它.您可以检测最后一页视图委托方法.您可以在此委托方法中查找当前页面是否为最后一页

You can use UIPageControl and hide it when you reach at last page. You can detect last page view delegate methods. You can find if current page is last page in this delegate method

- (void)pageViewController:(UIPageViewController *)pageViewController didFinishAnimating:(BOOL)finished previousViewControllers:(NSArray *)previousViewControllers transitionCompleted:(BOOL)completed{

 }

这篇关于在最后一页隐藏 UIPageViewController 的计数器点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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