当我在看一个 videos from Apple 的时候关于 Apple Watch 及其功能,我注意到页面指示器点的颜色会根据显示的页面而变化。
他们还获得了 Apple Watch Human Interface Guidelines 中彩色圆点的图像应用剖析部分。还要注意彩色标题文本。
通常在 WatchKit我将使用以下代码片段来执行此操作:
let features = ["First", "Second", "Third"]
let controllers = [String](count: features.count, repeatedValue: "FeatureInterfaceController")
self.presentControllerWithNames(controllers, contexts: features)
不幸的是,据我所知,没有一种方法可以访问 currentPageIndicatorTintColor
和 pageIndicatorTintColor
,就像您通常作为 UIKit
的一部分那样here (向下滚动到Tint Color)。
我想知道 Apple 是否只是简单地为视频添加了这些颜色,或者它们是否真的会在未来作为 WatchKit 的一部分提供?
也许我错了,有一种方法可以改变这些点的颜色。
最佳答案
正如 Apple 工程师在开发论坛中所写,目前无法自定义页面控件的颜色。
关于ios - WatchKit UIPageControl 点颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28822182/