title: tableView is hiding due to a gestureRecognizer before it can execute didSelectRowAtIndexPath
body: <p>I am trying to handle tableViewCell's being tapped, but the problem is that this is a "temporary tableView". I have it coded so that it will appear while the user is editing a UITextField, but then I set up a gesture recognizer to set the tableview to hidden as soon as the user clicks somewhere away from the UITextField. </p>
  
  <p>I have the gesture recognizer set up as follows:</p>
  
  <pre><code>UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]
                                 initWithTarget:self
                                 action:@selector(dismissKeyboard)];
  
  [tap setCancelsTouchesInView:NO];
  [self.view addGestureRecognizer:tap];
  </code></pre>
  
  <p>However, dismissKeyboard is called before <em>didSelectRowAtIndexPath</em> is called, and so the TableView that I want to handle the event on becomes hidden and therefore this function is never called. </p>
  
  <p>My question is: Does anybody have ideas of how to get around this, so that <em>didSelectRowAtIndexPath</em> will execute before the tableView hides? I had one idea to somehow see if the tableView is where the tap is coming from, and if so, then don't execute the "hide tableView" line within dismissKeyboard. Is this possible? </p>
  
  <p>Sorry, but I am new to iOS dev, so thank you for any advice!</p>