Colors 使用swift将pull更改为刷新文本颜色
我的应用程序需要刷新 如何更改attributedTitle的文本颜色Colors 使用swift将pull更改为刷新文本颜色,colors,swift,pull-to-refresh,Colors,Swift,Pull To Refresh,我的应用程序需要刷新 如何更改attributedTitle的文本颜色 refresher.attributedTitle = NSAttributedString(string: "hey ! is there something new ?") 试一试 var attr = [NSForegroundColorAttributeName:UIColor.greenColor()] refresher.attributedTitle = NSAttributedString(string:
refresher.attributedTitle = NSAttributedString(string: "hey ! is there something new ?")
试一试
var attr = [NSForegroundColorAttributeName:UIColor.greenColor()]
refresher.attributedTitle = NSAttributedString(string: "hey ! is there something new ?", attributes:attr)