title: didSelectRowAtIndexPath: not being called
body: <p>I have a <code>UITableView</code> as a subview of my <code>UIScrollVIew</code>, which is the main view controlled by my <code>MainViewController</code>. </p>
  
  <p>In MainViewController.h</p>
  
  <pre><code>@interface MainViewController : UIViewController &lt;UIGestureRecognizerDelegate, UITableViewDelegate, UITableViewDataSource&gt;
  
  // other stuff here...
  
  @property (weak, nonatomic) IBOutlet UITableView *myTableView;
  </code></pre>
  
  <p>In MainViewController.m</p>
  
  <pre><code>@synthesize myTableView;
  
  // other stuff here...
  
  - (void)viewDidLoad {
      myTableView.delegate = self;
      myTableView.datasource = self;
  }
  
  // other stuff here...
  
  -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath: (NSIndexPath *)indexPath {
     [self performSegueWithIdentifier:@"listAttributesSegue" sender:self];
  }
  </code></pre>
  
  <p>I know that <code>didSelectRowAtIndexPath</code> is not being called because I have set breakpoints on both the method itself and the line of code inside it, and neither is being called.  I also know that the datasource is working correctly because I have other functions which modify the cells at runtime and they are working perfectly fine.  I am using the latest Xcode with iOS 5.0 set as the development target.  I have searched and searched for an answer.  Anyone have any ideas?</p>
  
  <p><strong>Edit:</strong>
  I have found the answer. I had a <code>UITapGestureRecognizer</code> set for myTableView's superView.  This overrode the selection call.  Credit to whoever suggested that that might be it.  Your answer was deleted before I could mark it correct.</p>
  
  <p><strong>Edit 2:</strong>
  A lot of people have been commenting about this, so I though I would share it. If you are experiencing this problem, simply set <code>myGestureRecognizer.cancelsTouchInView</code> to <code>false</code> and everything should work fine.</p>