title: UITableView inside UIScrollView - Cell not clickable
body: <p>I have a problem with a UITableView not detecting touches.</p>
  
  <p>In an iPhone-only app, I have a UIViewController, which containts:</p>
  
  <ul>
  <li>UIScrollView
  
  <ul>
  <li>UIView (let's say a content view)
  
  <ul>
  <li>Some labels</li>
  <li>UITableView (last)</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>The labels have a dynamic height, because they contain some text that I must retrive from the web, so I'm using auto layout.
  I'm setting the content size of the UIScrollView inside the  <code>viewDidLayoutSubviews</code> method, and I'm doing this by summing <code>UITableView.frame.origin.y</code> and its height.</p>
  
  <p>Here comes the problem: when the labels contain only some words and the UITableView does not exceed the iPhone screen size, everything works ok. But when they grow, and the UITableView gets pushed down, when I scroll down I can't click on the cell anymore. Also, if when loading the view the table is half visible and half not, I can click the visible cells, but if I scroll down, I can't click the others.</p>
  
  <p>I'm using swift 2 and Xcode 7.</p>
  
  <p>Here is an example:</p>
  
  <p><strong>Clickable:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/bqBah.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bqBah.png" alt="enter image description here"></a></p>
  
  <p><strong>Unclickable:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/5zDeP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5zDeP.png" alt="enter image description here"></a></p>