我知道如何淡化背景。我就是这样做的:
self.faderTimer = NSTimer.scheduledTimerWithTimeInterval(self.fadeTime, target: self, selector: #selector(self.fadeBackground), userInfo: nil, repeats: true)
func fadeBackground(){
UIView.animateWithDuration(self.fadeTime, delay: 0, options: UIViewAnimationOptions.AllowUserInteraction, animations: { [unowned self] () -> Void in
self.fadeView.backgroundColor = UIColor.randomFlatColor()
}) { (Bool) -> Void in
}
}
如何在UILabel中使用TextColor做同样的事情?