title: Xcode Objective-C | iOS: delay function / NSTimer help?
body: <p>So I'm developing my first iOS application and I need help..</p>
  
  <p>Simple program for now, I have about 9 buttons and when I press the first button, or any button, I just want the first button to highlight for 60 milliseconds, unhighlight, second button highlights, wait 60 milliseconds, unhighlight and so on for the rest of the buttons so it looks like a moving LED.</p>
  
  <p>I've looked tried sleep/usleep but once that sleep duration is done it seems like it skips the highlight/unhighlight all together.</p>
  
  <p>For example:</p>
  
  <pre><code>- (void) button_circleBusy:(id)sender{
  firstButton.enabled = NO;
  sleep(1);
  firstButton.enabled = YES;
  </code></pre>
  
  <p>and so on for the rest of the buttons.  It DOES delay, but it doesn't delay the "firstButton.enabled = NO;".  I have a picture for each button's "disabled state" and I never see it.</p>
  
  <p>Any help's appreciated!  I've looked into NSTimer but I was unsure on how to implement it.</p>
  
  <p>Thanks.</p>
  
  <p>-Paul</p>