Hello stackoverflow,
I am trying to animate backgroundColor
property of UILabel class and being unsuccessful so far. Here the snippet of my code
-(void) blink {
UIColor* originalColor = lblDescription.backgroundColor;
lblDescription.backgroundColor = [UIColor yellowColor];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
lblDescription.backgroundColor = originalColor;
[UIView commitAnimations];
}
//this code works if lblDescription is UIView and does not if UILabel
I found some claims that some UILabel properties are not animatable, but I couldn't substantiate that claim by reading Apple docs. I was wondering if someone can shed light on this problem.