I'm getting the following error when i start type the search text in SearchBar
Assertion failure in -[UISearchResultsTableView _configureCellForDisplay:forIndexPath:]
My cellForRowAtIndexPath
code for Search Display Controller
is as follows :
if(tableView == self.searchDisplayController.searchResultsTableView)
{
static NSString *CellIdentifier = @"cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if(cell == nil)
{
cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
}
cell.textLabel.text = [search objectAtIndex:indexPath.row];
return cell;
}