views:

437

answers:

2

Hi !

Just a simple question. Is it possible to change the text color of UITextView with a animation?

[UITextView beginAnimations:nil context:NULL]; 
[UITextView setAnimationDuration:2.0]; 
     textView.textColor = [UIColor grayColor];  
[UITextView commitAnimations];   

Cheers!
- Martin

+1  A: 

The textColor is not an animatable property, so I don't think this will be feasible with the UITextView.

Martin Cote
A: 

As Martin Cote said textColor is not an animatable property.
I solved this with a change to the UItextView transparency instead.

[UITextView beginAnimations:nil context:NULL]; 
[UITextView setAnimationDuration:2.0]; 
     textView.alpha = 0.5f; 
[UITextView commitAnimations]; 

Thanks for your time.
/ martin

f0rz