title: uibutton sender tag
body: <p>I have a UIImageView object that when clicked it will play a animation, I want to reuse the same code to make multiple objects.  How do I set the sender tag so it knows its a different object?</p>
  
  <p>.h</p>
  
  <pre><code>- (IBAction)startClick:(id)sender;
  </code></pre>
  
  <p>.m</p>
  
  <pre><code>- (IBAction)startClick:(id)sender
  {
      //UIImageView *theButton = (UIImageView *)sender.tag;
  
      bubble.animationImages = [NSArray arrayWithObjects:
                             [UIImage imageNamed: @"Pop_1.png"],
                             [UIImage imageNamed: @"Pop_2.png"],
                             [UIImage imageNamed: @"Pop_3.png"], nil];
  
      [bubble setAnimationRepeatCount:1];
      bubble.animationDuration = 1;
      [bubble startAnimating];
  }
  </code></pre>