title: UITextView can't dismiss the keyboard in programmatically-created UITableView
body: <p>There seems to be lots on this subject. But I couldn't get any of the solutions to work.</p>
  
  <p>My code creates a <code>tableView</code> full of cells with varying contents (based on a JSON), the user should enter the info in each cell.  The problem I am having is, when the user taps somewhere outside the cell (i.e. on the <code>tableView</code> background) I want the keyboard to dismiss.  </p>
  
  <p><code>didSelectRowAtIndexPath:</code> method is not good.</p>
  
  <p><code>touchesBegan:</code> does not fire at all (<code>tableView</code> has user interaction enabled, but I assume there is some other reason).</p>
  
  <p>I have added a gesture to the <code>tableView</code>, but then I cannot start editing.</p>
  
  <p>I know the <code>resignFirstResponder</code>. But I don't know which field is being edited. so I think, I need to go with the <code>endEditing:</code> method. But I just couldn't get it called, when user touches outside of a cell.</p>
  
  <p>Any help would appreciated.</p>