title: Attempting to handle tap event from UIButton in UITableView cell causes invalid selector error
body: <p>I am attempting to handle the tap event of a UIButton in a UITableView cell but unfortunately the app crashes with the error message:</p>
  
  <pre><code>unrecognized selector sent to instance 0x7f95984cbaf0
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView
           cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      // this is a simplified version of this method for brevity.
      NSMutableArray* views = [NSMutableArray array];
  
      UIButton* button = [UIButton buttonWithThinBorderedColor_QAN:[UIColor colorForPrimaryUse]
                                                  highlightedColor:nil
                                                     disabledColor:nil];
      [button addTarget:self action:@selector(showSomething) forControlEvents:UIControlEventTouchUpInside];
  
      button.tag = indexPath.row;
      [views addObject:button];
      [cell setContents:views withConfiguration:configuration];
      return cell;
  }
  </code></pre>
  
  <p>In myViewController.h (simplified version) I have:</p>
  
  <pre><code>@interface SEFSFormEditingViewController : UITableViewController
  
  - (void) showSomething;
  
  @end
  </code></pre>
  
  <p>In myViewController.m I have:</p>
  
  <pre><code>-(void)showSomething:(UIButton *)sender
  {
      if (sender.tag == 0) {
      NSString* test= @"test";
      }
  }
  </code></pre>
  
  <p>When I run the app the button is correctly displayed but when I tap it the app crashes.</p>
  
  <p>Could someone please point me to the right direction on to fix this problem?</p>