2015-03-03 46 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

回答