title: UIButton not working in tableview cell
body: <p>I've added a button to a tableview cell, but I'm having two problems with it:</p>
  
  <p>1) I've invoked a <code>setTarget:action:</code> method on the button, but the <code>action:</code> method never gets called:</p>
  
  <pre><code>[playButton addTarget:self action:@selector(playButtonPressed:) 
                   forControlEvents:UIControlEventTouchUpInside];
  </code></pre>
  
  <p>2) the cell itself ends up getting selected on the touch, invoking <code>didSelectRowAtIndexPath</code>, which I don't want to happen.</p>
  
  <p>I've verified that the button is at least seeing the touch by setting its <code>showsTouchWhenHighlighted</code> property and seeing it "glow" when pressed. But for whatever reason it looks like the touch event is then getting passed up to its cell superview instead of being handled by the button itself.</p>
  
  <p>I've tried adding the button directly to the cell's <code>contentView</code>, as well as to other cell subviews, with no effect. I've also made sure that the button's superview(s) were all touch-enabled.</p>
  
  <p>Any thoughts?</p>
  
  <p>Howard</p>