2015-03-03 128 views
3

当我在观看关于Apple Watch及其功能的videos from Apple之一时,我注意到页面指示符点的颜色根据所呈现的页面而改变。WatchKit UIPageControl Dot Color

他们还获得了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的一种方式您通常将作为UIKithere的一部分(向下滚动至Tint Color)。

我不知道Apple是否仅仅为视频添加了这些颜色,或者他们是否将在未来成为WatchKit的一部分?

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

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

回答