title: NSTimer not firing when it should
body: <p>I have a table view that is broken up into alphabetic sections.  I am displaying an animated banner in a UIImage View in the footer of each section, and need to determine which image is displayed when the UIImage View is clicked.  I set a timer right before I make the call to startAnimating.  The timer is to fire every 5 seconds, at the same rate that the animation changes, but the timer is firing much faster.  Sometimes it will fire 2 or 3 times within that 5 second period.  Here is the code where I start the timer and the animation:</p>
  
  <pre><code>-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger) section {
  
  ...
  
      imgAdBar = [[bannerView alloc]initWithFrame:CGRectMake(footer.frame.origin.x,footer.frame.origin.y,footer.frame.size.width,footer.frame.size.height)];
  
      imgAdBar.image=[UIImage imageNamed:[NSString stringWithFormat:@"%@", [animationArray objectAtIndex:0]]]; 
      [imgAdBar saveBannerArray:animationArray];
      [imgAdBar setUserInteractionEnabled:YES];
      imgAdBar.animationImages = images;
      imgAdBar.animationDuration=[images count]*5;
      imgAdBar.animationRepeatCount=0;
      timerCount=0;
      [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(timerRunning:) userInfo:nil repeats:YES];
      [imgAdBar startAnimating];
      [footer addSubview:imgAdBar];
      footer.backgroundColor = [UIColor clearColor];
  
  }
  return footer;
  }
  </code></pre>
  
  <p>And here is the selector:</p>
  
  <pre><code>-(void)timerRunning:(NSTimer*)theTimer
  {
  NSLog(@"timerCount=%d",timerCount);
  
  imgAdBar.timerCount=timerCount;
  if (timerCount==numAnimationImages) {
      timerCount=0;
  }
  NSLog(@"currentImage=%@",[animationArray objectAtIndex:timerCount]);
  timerCount++;
  }
  </code></pre>
  
  <p>I plan to use that timer to index into my image array so that I can tell which is displayed.  Anyone have any idea why it's not firing when it should?  Thanks for any assistance!</p>