当文本标签中有变化时,我想使其具有动画效果。对于ex,我得到了一个价格标签,它将随着时间的推移而改变(丢弃)。如果价格是100.25,并下降到100.24,我想动画的最后一位数字。
有没有一个很好的动画库可以满足我刚才提到的目的?
谢谢
发布于 2016-04-02 14:58:54
尝尝这个
可以使用淡入淡出效果
CATransition *animation = [CATransition animation];
animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
animation.type = kCATransitionFade;
animation.duration = 0.75;
[aLabel.layer addAnimation:animation forKey:@"kCATransitionFade"];
// This will fade:
aLabel.text = xxx希望这能有所帮助。
发布于 2016-04-02 19:15:49
//Try This One Hope So Helpfulfor (sleepForTimeInterval;iNSThread i=0 sleepForTimeInterval:delay;
} }
https://stackoverflow.com/questions/36370202
复制相似问题