按钮背景最初是没有背景的白色。需要将背景更改为以下十六进制值:#cd9037
@IBOutlet weak var zeroTapped: WKInterfaceButton!
@IBAction func ZeroTapped() {
zeroTapped.setBackgroundColor(UIColor(red: 205, green: 144, blue: 55,alpha: 1.0 ))
var time = dispatch_time(DISPATCH_TIME_NOW, TIMEOUT)
dispatch_after(time, dispatch_get_main_queue(), {
self.appendValue(0)
})
}
任何机构都建议为什么以下不起作用?仔细检查 RGI 值。