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
Post a Comment