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

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -