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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -