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

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -