WatchKit UIPageControl Dot Color [英] WatchKit UIPageControl Dot Colour

查看:100
本文介绍了WatchKit UIPageControl Dot Color的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在观看我会使用以下代码片段来执行此操作:

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

不幸的是据我所知,没有办法访问 currentPageIndicatorTintColor pageIndicatorTintColor 正如您通常所做的那样 UIKit


When I was watching one of the videos from Apple about the Apple Watch and its features I noticed that the page indicator dot colours change depending on the page presented.

They've also got images of the coloured dots within the Apple Watch Human Interface Guidelines App Anatomy section. Note the coloured title text as well.

Normally in WatchKit I would use the following snippet of code to do this:

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

Unfortunately as far as I know there isn't a way to access the currentPageIndicatorTintColor and pageIndicatorTintColor as you normally would as part of UIKit here (scroll down to Tint Color).

I wonder if Apple simply just added those colours for the video or whether they're actually going to be available as part of WatchKit in the future?

Perhaps I'm wrong and there is a way to change these dot colours.

解决方案

As written by an Apple Engineer in the Dev Forums, it's not possible to customize the color of the page control at this time.

Source: https://devforums.apple.com/message/1100695#1100695

这篇关于WatchKit UIPageControl Dot Color的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆