title: UIButton in UITableViewCell did not call the action
body: <p>I have a UIButton in the UITableViewCell which i would like to toggle it's image when it got selected. Below is my code:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)todoTable cellForRowAtIndexPath:(NSIndexPath *)indexPath 
  {
  static NSString *CellIdentifier = @"SimpleTableIdentifier";
  
  UITableViewCell *cell = [self.todoTable dequeueReusableCellWithIdentifier:CellIdentifier];
  
  if(!cell)
      cell = [self getCellContentView:CellIdentifier];
  
  
  UIImageView *checkboxView = (UIImageView *)[cell viewWithTag:1];
  
  UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(0.0, 0.0, 30.0, 30.0)];
  
  UIImage *uncheckedButtonImage = [UIImage imageNamed:@"unchecked_checkbox.png"];
  [button setImage:uncheckedButtonImage forState:UIControlStateNormal];
  
  [button addTarget:self action: @selector(toggleImage:) forControlEvents: UIControlEventTouchUpInside];
  
  [checkboxView addSubview:button];
  </code></pre>
  
  <p>}`</p>
  
  <p>and my toggleImage method is just:
  <code>- (void)toggleImage
  {
      NSLog(@"test");
  }</code></p>
  
  <p>But whenever i click on the button itself, the row of cell gets called at didSelectRowAtIndexPath which i don't want, i want the button call the toggleImage method. Is it i set my button's action the wrong way?</p>
  
  <p>Thanks.</p>