ios - Changing the color of a label every x seconds -
is there way implement this? http://i.imgur.com/jbhambk.gif have tried using ttattributedlabel no success (no flashing , time doesn't change anymore).
does know of way make happen?
any appreciated
thanks everyone
matt
you can use timer.
- (nstimer*)createtimer { // create timer on run loop return [nstimer scheduledtimerwithtimeinterval:1.0 target:self selector:@selector(timerticked:) userinfo:nil repeats:yes]; } - (void)timerticked:(nstimer*)timer { [yourlabel settext:@""] … } - (void)actionstop:(id)sender { // stop timer [mytimer invalidate]; }
Comments
Post a Comment