title: Displaying search results crashes when using UISearchDisplayController
body: <p>I tried to implement a SearchBarView Controller to my TableView with CoreData. But, when I tap on the Searchbar, the app crashes and I get the following Error:</p>
  
  <blockquote>
    <p>Assertion failure in -[UISearchResultsTableView
    dequeueReusableCellWithIdentifier:forIndexPath:],
    /SourceCache/UIKit/UIKit-2935.137/UITableView.m:5439<br>
    <code>***</code> Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell
    with identifier Cell - must register a nib or a class for the
    identifier or connect a prototype cell in a storyboard'</p>
  </blockquote>
  
  <p>Without Searchbar I show my TableContent like this:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier = @"Cell";
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
  
      // Configure the cell...
      NSManagedObject *device = [self.inventory objectAtIndex:indexPath.row];
      [cell.textLabel setText:[NSString stringWithFormat:@"%@", [device valueForKey:@"productName"]]];
      //[cell.detailTextLabel setText:[device valueForKey:@"company"]];
  
      return cell;
  }
  </code></pre>
  
  <p>works perfectly.</p>
  
  <p>So now I tried to show the SearchbarViewControllerContent like this:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier = @"Cell";
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
  
      // Configure the cell...
      NSManagedObject *device = nil;
      if (tableView == self.searchDisplayController.searchResultsTableView)
          {device = [searchResults objectAtIndex:indexPath.row];}
      else
          {device = [self.cart objectAtIndex:indexPath.row]; }
  
      [cell.textLabel setText:[NSString stringWithFormat:@"%@", [device valueForKey:@"productName"]]];
  
      return cell;
  }
  </code></pre>
  
  <p>but this doesn't work.</p>
  
  <p>If you have to know how my Searchbar (should) works:</p>
  
  <pre><code>- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      return 71;
  }
  
  - (void)filterContentForSearchText:(NSString*)searchText scope:(NSString*)scope
  {
      NSPredicate *resultPredicate = [NSPredicate predicateWithFormat:@"productName contains[c] %@", searchText];
      searchResults = [cartProducts filteredArrayUsingPredicate:resultPredicate];
  }
  
  -(BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString
  {
      [self filterContentForSearchText:searchString
                                 scope:[[self.searchDisplayController.searchBar scopeButtonTitles]
                                        objectAtIndex:[self.searchDisplayController.searchBar
                                                       selectedScopeButtonIndex]]];
  
      return YES;
  }
  </code></pre>