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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -