я получаю следующее сообщение об ошибке, когда я начала введите искомый текст в SearchBarПолучение «отказ Assertion» в UISearchResultsTableView
Assertion failure in -[UISearchResultsTableView _configureCellForDisplay:forIndexPath:]
Мой cellForRowAtIndexPath
код Search Display Controller
выглядит следующим образом:
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;
}
Спасибо большое :) –
Что делать, если я хочу использовать пользовательскую ячейку? –
У меня нет пользовательского файла XIB по-другому –