ios - WatchKit UIPageControl 点颜色

标签 ios uikit watchkit uipagecontrol

当我在看一个 videos from Apple 的时候关于 Apple Watch 及其功能,我注意到页面指示器点的颜色会根据显示的页面而变化。

他们还获得了 Apple Watch Human Interface Guidelines 中彩色圆点的图像应用剖析部分。还要注意彩色标题文本。

enter image description here

通常在 WatchKit我将使用以下代码片段来执行此操作:

let features = ["First", "Second", "Third"]
let controllers = [String](count: features.count, repeatedValue: "FeatureInterfaceController")
self.presentControllerWithNames(controllers, contexts: features)

不幸的是,据我所知,没有一种方法可以访问 currentPageIndicatorTintColorpageIndicatorTintColor,就像您通常作为 UIKit 的一部分那样here (向下滚动到Tint Color)。

我想知道 Apple 是否只是简单地为视频添加了这些颜色,或者它们是否真的会在未来作为 WatchKit 的一部分提供?

也许我错了,有一种方法可以改变这些点的颜色。

enter image description here enter image description here enter image description here

最佳答案

正如 Apple 工程师在开发论坛中所写,目前无法自定义页面控件的颜色。

来源:https://devforums.apple.com/message/1100695#1100695

关于ios - WatchKit UIPageControl 点颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28822182/

相关文章:

ios - 获取用户当前位置/获取经纬度值 watchkit/ios swift

ios - 如何在没有 iPhone 的情况下让我的 Apple Watch 应用程序正常工作?

ios - 调用 View Controller 类而不弹出 View Controller 本身

ios - 如何本地化应用名称?

ios - preferredStatusBarStyle 未被调用

iphone - Fidget Spinner 动画 Swift?

html - 使用 UIKIT 创建网格布局

ios - 我们可以从Apple Watch实例化MFMessageComposeViewController类的类吗

ios - UISearchContainerViewController 是否在 iOS 上工作

ios - 我如何知道 iPad 上何时出现拆分窗口拖动 handle ?