答案 0 :(得分:2)
Objective-C
使用[UIButton setTitleColor:forState:]
API
[yourButton setTitleColor:[UIColor grayColor] forState: UIControlStateHighlighted];
Swift
yourButton.setTitleColor(UIColor.grayColor(), forState: .Highlighted)
答案 1 :(得分:2)