iphone - Animating Values in UILable IOS Swift -


i want display values 1-10 repeatedly in uilable animation user should able see fluctuation of values how can achieve functionality ?

you can use :

var timer : nstimer = nstimer.scheduledtimerwithtimeinterval(1, target: self, selector: "change_label", userinfo: nil, repeats: true)   func change_label()  {  count = count+1 label.text = string(format: "%d",count)  } 

Comments

Popular posts from this blog

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

authentication - ASP.NET Core 1.0. Bearer Token, cannot access custom claims -