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
Since iOS 4.0 you can now achieve this using [UIView transitionWithView:duration:options:animations:completion:]
[UIView transitionWithView:textView
duration:0.5f
options:UIViewAnimationOptionTransitionCrossDissolve
animations:^{
textView.textColor = ...
}
completion:nil];
The textColor is not an animatable property, so I don't think this will be feasible with the UITextView.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With