title: How to use UITableView inside UIScrollView and receive a cell click?
body: <p>I have <code>DiscountListTableViewController</code> that is shown as a separate screen in my app. But there's another screen (<code>PlaceDetailsViewController</code>) where I need to show related discounts at the bottom. </p>
  
  <p>Currently, <code>PlaceDetailsViewController.view</code> has <code>UIScrollView</code> as a container and I'm adding <code>DiscountListTableViewController.tableView</code> to the this <code>UIScrollView.content</code> container in <code>viewDidLoad</code> of <code>PlaceDetailsViewController</code>. This works and the table view is shown correctly, however unable to receive cell clicks.</p>
  
  <p>I know <code>UITableView</code> inherits from <code>UIScrollView</code> and it's somehow not advised (but not restricted). However, from loose coupling point of view, every component should be designed in a way it could be independently used elsewhere, and it's <code>DiscountListTableViewController</code> in my case. </p>
  
  <p><code>PlaceDetailsViewController</code> component just needs <code>DiscountListTableViewController</code> as-is, so there's no logic reason why it can't be used directly. Any suggestions? </p>