title: Custom UIButton inside a UITableView keeps highlighted after being pressed
body: <p>I have implemented a custom UIButton, posted in cocoacontrols.com:</p>
  
  <p><a href="http://cocoacontrols.com/platforms/ios/controls/imageless-gradient-buttons" rel="nofollow">http://cocoacontrols.com/platforms/ios/controls/imageless-gradient-buttons</a></p>
  
  <p>I´ve just converted the project to ARC and setted up the buttons. They work, but after being pressed once, they keep they highlighted gradient.</p>
  
  <p>To set them up, I just changed the class on both storyboard and on the IBOutlets and I´ve selected the gradient I wante on viewDidLoad.</p>
  
  <p>Any idea on what could be the problem?  </p>
  
  <p><strong>EDIT</strong>: I've been spending more time with it and it appears to be that the problem only happens when the button is on a UITableView. It works OK when it is on a UIViewController</p>
  
  <p><strong>EDIT #2</strong>: according to the NSLogs, when the container is a UIViewController, the gradient is back to normal when a button is pressed:</p>
  
  <pre><code>2012-05-26 10:53:17.950 GradientButtons[11507:f803] highlighthed
  2012-05-26 10:53:18.040 GradientButtons[11507:f803] highlighthed
  2012-05-26 10:53:18.140 GradientButtons[11507:f803] Normal
  </code></pre>
  
  <p>but when the container is a UTableViewController, the button remains with the highligthed gradient:</p>
  
  <pre><code>2012-05-26 10:55:20.969 GradientButtons[11507:f803] highlighthed
  2012-05-26 10:55:21.069 GradientButtons[11507:f803] highlighthed
  </code></pre>
  
  <p>I've checked the viewContentMode and it is all the same for all the buttons, UIView and UITableView (Scale to Fill). Changing it to redraw doesn't change behaviour.</p>