title: iOS UITableViewCell needs to be pressed twice to call didSelectRowAtIndexPath
body: <p>I have a UITableView that sometimes requires you touch it twice to select a cell.</p>
  <p>More specifics:</p>
  <ul>
  <li>Two touches are needed only after the table has been scrolled all the way up or all the way down.</li>
  <li>Only the second touch even calls <code>didSelectRowAtIndexPath</code>.</li>
  <li>When the table opens in the natural &quot;scrolled up position&quot;, cells are indeed selectable with just one touch.</li>
  <li>If you scroll just a little bit (not all the way down/up), the cells will select with just one touch.</li>
  <li>If cells do not fill the whole table and scrolling is not required, it works fine.</li>
  <li>Go all the way to the top or bottom and you have to touch twice.</li>
  </ul>
  <p>I have a feeling that the first touch is really making the UITableViewCells selectable or is activating the table in some way.</p>
  <p>Things I have checked:</p>
  <ul>
  <li>My code definitely doesn't call <code>didDeselectRowAtIndexPath</code> anywhere.</li>
  <li>No <code>UIGestureRecognizers</code> are using <code>setCancelsTouchesInView:</code>.</li>
  </ul>
  <p>Other settings on the table:</p>
  <pre><code>self.tableView.scrollEnabled = YES;
  self.tableView.showsVerticalScrollIndicator = NO;
  self.tableView.bounces = NO;
  self.tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
  </code></pre>
  <p>What's causing this?</p>
  <hr />
  <h1>Update</h1>
  <p>Oddly enough, setting <code>self.tableView.bounces = YES;</code> fixed the problem.</p>
  <p>I am still looking into the root cause in case anyone has a better answer. Obviously I would like for the table not to bounce, but not if it costs key functionality.</p>