title: custom cell didSelectRowAtIndexPath not called
body: <p>I created a universal master-detail application. I have a table view within a custom class (MasterViewController class). This is a UITableViewController class.
  Using Storyboard, I created a custom cell in my iPhone table view. The custom cell contains 3 labels and 1 image. 
  In StoryBoard, this table view datasource and delegate is set to the MasterViewController class. 
  My custom table view cell has 'User Interaction Enabled' in the View section of the attribute inspector.
  In my MasterViewController class, the UITableViewDataSource methods such as 'numberOfSectionsInTableView' are working fine.
  I have a seque defined between the table view and a detailed view. 
  When I run the application and select a cell in the table view, the didSelectRowAtIndexPath is not called for the iPhone. My prepareForSegue method executes and the segue occurs.</p>
  
  <p>I have read quite a number of posts on didSelectRowAtIndexPath not being executed, but I have not been able to solve my problem.</p>
  
  <p>Any hints would be very much appreciated.</p>
  
  <p>My custom cell identifier is ConversationCell. The segue identifier is ShowConversationDetails.
  I debug with a breakpoint on the first line of numberOfRowsInSection and this method is never entered.</p>
  
  <p>The segue works and the detail view displays my label with 'Hello' text.</p>
  
  <p><strong>Some Code:</strong></p>
  
  <pre><code>- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
  
  id &lt;NSFetchedResultsSectionInfo&gt; sectionInfo = [self.fetchedResultsController sections][section];
  
  //NSLog(@"Rows %lu",(unsigned long)[sectionInfo numberOfObjects]);
  return [sectionInfo numberOfObjects];
  
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
  
  static NSString *CellIdentifier = @"ConversationCell";
  
  UITableViewCell *cell =
  [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  
  [self configureCell:cell atIndexPath:indexPath];
  
  return cell;
  
  }
  
  - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {
  
  if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
  
  
     [[self.fetchedResultsController sections] count]);
  
  
     NSManagedObject *object = [[self fetchedResultsController] objectAtIndexPath:indexPath];
      self.detailViewController.detailItem = object;
  }
  }
  
  - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
  {
  if ([[segue identifier] isEqualToString:@"ShowConversationDetails"]) {
  
      NSIndexPath *selectedIndex = [self.tableView indexPathForSelectedRow];
  
      Event *e = nil;
  
      e = [self.fetchedResultsController objectAtIndexPath:selectedIndex];
  
      UIViewController *destinationViewController = [segue destinationViewController];
      [segue.destinationViewController setLabel:@"Hello"];
      }
  }
  </code></pre>
  
  <p>MASTERVIEWCONTROLLER:
  Here is my interface for above;</p>
  
  <pre><code>@interface MasterViewController : UITableViewController     &lt;NSFetchedResultsControllerDelegate,ASIHTTPRequestDelegate,UITableViewDelegate, UITableViewDataSource&gt;
  {
  NSMutableArray *eventsArray;
  
  }
  </code></pre>
  
  <p>This may be a clue to my problem. When I add the following code to prepareForSeque</p>
  
  <pre><code>NSIndexPath *selectedIndex = [self.tableView indexPathForSelectedRow];
      NSManagedObject *object = [[self fetchedResultsController] objectAtIndexPath:selectedIndex];
      NSString *messageTableID = [[object valueForKey:@"messagetableid"] description];
  </code></pre>
  
  <p>selectedIndex is empty as if a row is no longer selected when prepareForSeque is executing.</p>
  
  <p>By the way, just to be safe, I removed the app from the simulator and then did a Clean on the project and nothing changed.</p>
  
  <p>Tim</p>