我可以在我的应用中刷新。
如何更改attributionTitle的文本颜色?
refresher.attributedTitle = NSAttributedString(string: "hey ! is there something new ?")
答案 0 :(得分:9)
尝试
var attr = [NSForegroundColorAttributeName:UIColor.greenColor()]
refresher.attributedTitle = NSAttributedString(string: "hey ! is there something new ?", attributes:attr)