I am trying to translate the text of UILabel
:
CATransition *animation = [CATransition animation]; animation.duration = 4; animation.type = kCATransitionReveal; animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear]; [label.layer addAnimation:animation forKey:nil]; label.text = resultDateStr;
This works great. But when I installed it in kCATransitionFade
, it stops working. Tested on iOS 4.3 and 5.0 Any idea?
source share