Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Colors 使用swift将pull更改为刷新文本颜色_Colors_Swift_Pull To Refresh - Fatal编程技术网

Colors 使用swift将pull更改为刷新文本颜色

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:

我的应用程序需要刷新

如何更改attributedTitle的文本颜色

 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)