ios - UIKit: how to loop number increment of UILabel text -


could give me advice how show smooth number increment in uilabel? code have used performs such increment fast human eye :)

for (int = 1; i<=self.score; i++) {     self.levelcompletescorelabel.text = [nsstring stringwithformat:@"%d", i]; }  

i can't use sleep() function because have concurrent animations going on screen.

seems nstimer work trying do.

you can set fire every 1 or 0.5 seconds users can see , appreciate change.

here find easy way implement it.

additionally can @ answers question wich has lot of information on nstimer: how use nstimer?


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -