I have a label which pops up displaying points in my application. I am using the following code to make the label get larger in scale, then smaller. I would also like to ani
This line of code works for me. Make sure to set the Options to Cross Dissolve Swift:
static func animationButtonTextColor(button : UIButton, toColor : UIColor, duration : NSTimeInterval) {
UIView.transitionWithView(button, duration: duration, options: UIViewAnimationOptions.TransitionCrossDissolve, animations: {
button.setTitleColor(toColor, forState: .Normal)
}, completion: nil)
}