title: Have to tap twice to select an UITableViewCell after dragging with UIPanGestureRecognizer
body: <p>I have a small <code>320x144</code>viewcontroller named <code>SubViewController.h</code> which has a UITableView in it with 3 cells with a single section. I have made the tableView unscrollable and also put some shadow effect behind the tableView by grace of <code>CALayer</code>. </p>
  
  <p>In another viewcontroller named as MainViewController.m i have added <code>SubViewController.h</code> as a subview to this <code>MainViewController</code>. Using <code>UIPanGestureRecognizer</code> i have successfully able to drag the SubViewContoller anywhere i want. </p>
  
  <p>I make this subView visible with a <code>UIBarButtonItem</code>. And after selecting a cell in the tableView of the subview i made it disappear from  main view with some animation.</p>
  
  <p>Everything works fine.</p>
  
  <p>But when i drag the subview and then try to select one cell i have to tap the cell twice. In first tap nothing actually happens except the cell turns blue(like it happens normally when you select a cell in tableView) but does not go Hidden. If i tap again then it will go hidden.</p>
  
  <p>Without dragging the subview i can select one cell with a single touch and also the view goes hidden.</p>
  
  <p>I have written the code for hiding the subview in <code>didSelectRowAtIndexPath:</code> method of the subview. And I have checked this method is not called when i select first time after dragging the subview.In the second tap or touch it is called though. And again if the user moves the subview again same problem occurs.</p>
  
  <p>Surely some property of the subview got changed after dragging which i cant able to figure out.</p>