title: How do I use a storyboard Dynamic Prototypes TableViewCell to format SearchDisplayController results
body: <p>I created TableViewController subclass and used it with a storyboard. I created 1 Dynamic Prototype and used its Identifier value in the subclass. It works and displays the cells as it shows in the storyboard. But when I added the searchDisplayController and made the TableViewController the delegate and datasource, it displays the corrct search results, but the format of the TableViewCells no longer followed the storyboard prototype. Code I used below. How can I make it follow the prototype?</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier = @"Contact Cell";
      static NSString *sCellID = @"Contact Cell";
      UITableViewCell *cell;
          if (tableView == self.searchDisplayController.searchResultsTableView) {
              cell = [tableView dequeueReusableCellWithIdentifier:sCellID];
              if (cell == nil) 
              {            
                  cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:sCellID];
              }
          }
          else
          {
              cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
              if (cell == nil) 
              {            
                  cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
              }
          }
  
  
      // ask NSFetchedResultsController for the NSMO at the row in question
      Contact *contact = [self.fetchedResultsController objectAtIndexPath:indexPath];
      // Then configure the cell using it ...
      cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
      cell.imageView.image = [UIImage imageNamed:@"1234_profile.png"];
      cell.textLabel.text = [contact.lastName stringByAppendingFormat:@", %@",contact.firstName];
      cell.detailTextLabel.text = [NSString stringWithFormat:@"%@, %@", contact.occupation, contact.companyName];
  
      return cell;
  }
  </code></pre>