【发布时间】:2014-07-18 17:42:48
【问题描述】:
我知道如何更改背景颜色,但实际文本呢? UIButton 上似乎没有一个名为“color”或类似名称的成员。 我的代码:
@IBAction func yellowBtnClicked(sender: UIButton) {
gameboard.image = UIImage(named: "Yellow_gb")
resultsView.image = UIImage(named: "Yellow_results")
colorsView.image = UIImage(named: "Yellow_colors")
colorsBtn.color = UIColor.brownColor() //This line has the issue
}
【问题讨论】: