title: Button not working in UITableViewCell subclass when it is a subview of a view inside the UITableViewCell
body: <p>I have a button in a tableView Cell that I need to respond to touch events. Normally this would easily be solved by </p>
  
  <pre><code>    [cell.playButton addTarget:self action:@selector(playButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
  </code></pre>
  
  <p>inside of -tableView:cellForRowAtIndexPath:</p>
  
  <p>The problem I am having is that my button is inside of a custom UITableViewCell subclass and is also the subview of a view that I am creating inside of that class..</p>
  
  <p>for example:</p>
  
  <pre><code>    UIView *view = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 44)];
      self.theView = view;
      [self addSubview:view];
      [view release];
  
  
      UIButton *playButton = [UIButton buttonWithType:UIButtonTypeCustom];
      playButton.frame = CGRectMake(5, 5, 100, 30);
      [playButton setImage:[UIImage imageNamed:@"button_playvid.png"] forState:UIControlStateNormal];
      [playButton setImage:[UIImage imageNamed:@"button_playvid_active.png"] forState:UIControlStateHighlighted];
      self.playButton = playButton;
      [self.theView addSubview:playButton];
  </code></pre>
  
  <p>When the button is a subview of a view that I create within the custom UITableViewCell then the cell is highlighted instead of the button being pressed so the target that I setup in -tableView:cellForRowAtIndexPath is never called. Not sure why.. any help?</p>
  
  <p>Thanks,</p>
  
  <p>Joel</p>
  
  <p>PS. I realize that there probably isn't a practical reason to create a background view exactly like this since there already is one. This is just example code that I'm using to explain a problem I'm having.. :D</p>
  
  <p>Thanks for Looking! </p>