ios - UIPageViewController 中缺少页面指示

标签 ios ios7 uipageviewcontroller

我想利用 UIPageViewController 对我的数据源进行分页。 基本上它是有效的,但是我看不到这些点是我在哪个页面上的指示。

之前有人问过这个问题,我也确实做了什么the answer建议。但是,我的屏幕底部仍然没有任何点。

基本上我使用的是UIPageViewControllerTransitionStyleScroll,导航方向是UIPageViewControllerNavigationOrientationHorizo​​ntal

我创建了一个 sample project在 GitHub 上演示问题。

如果有人愿意帮忙。

最佳答案

解决此问题的另一种方法是 customize the page control's tint colors :

UIPageControl *pageControlAppearance = [UIPageControl appearanceWhenContainedIn:[UIPageViewController class], nil];
pageControlAppearance.pageIndicatorTintColor = [UIColor lightGrayColor];
pageControlAppearance.currentPageIndicatorTintColor = [UIColor darkGrayColor];

关于ios - UIPageViewController 中缺少页面指示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21296872/

相关文章:

swift - 从嵌入式 UIPageViewController 访问父 UIViewController 的成员

ios - Twilio SWIFT API 获取消费消息始终返回 0

objective-c - 如何创建一个 "stretchable"UIView

ios - 可以转换为 Swift 5

iOS didFailToRegisterForRemoteNotificationsWithError 仅适用于 iOS 7

ios - 从 Controller 内的页面更改 PageViewController 中的页面?

ios - 如何在 SFSafariViewController 上实现 SSL Pinning?

objective-c - videoMinFrameDuration 已弃用

ios - 为什么 Swipe-to-Delete 在 iOS 7 下会崩溃?

iphone - 使用UIPageViewController时如何让用户知道可以翻页?