title: Need TableViewCell to blink upon being touched
body: <p>I have a TableViewCell that I want to blink when it's tapped (ie quickly highlight off and on a couple of times). </p>
  
  <p>So far I've implemented this functionality with a timer as follows:</p>
  
  <pre><code>-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
  {
        NSTimer *blinkTimer = [[NSTimer scheduledTimerWithTimeInterval:.05 target:self selector:@selector(toggleHighlightedMenuCell) userInfo:nil repeats:YES] retain];
        self.blinkTimer = blinkTimer;
        [blinkTimer release];
  } 
  
  -(void) toggleHighlightedMenuCell
  {
      if (self.highlightedMenuCell.isHighlighted)
      {
          self.highlightedMenuCell.highlighted = NO;
      }
      else 
      {
          self.highlightedMenuCell.highlighted = YES;        
      }
  
      self.blinkTimerCounter++;
  
      if (self.blinkTimerCounter == 2)
      {
          self.blinkTimerCounter = 0;
          [self.blinkTimer invalidate];
  
          //execute some code
      }
  }
  </code></pre>
  
  <p>The problem with this is it seems to start executing the code in the <code>//execute some code</code> section before it's finished blinking. Can anyone think of a better way to accomplish this?</p>