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 - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -