Мой стол просто имеет ряд с UIImageView
. Когда я задаю изображение непосредственно как нижеуказанный путьЕсть ли способ игнорировать регистрацию элемента или класса для TableViewCell?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *identifier = @"cellidentifier";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier forIndexPath:indexPath];
// Configure the cell...
cell.imageView.image = [self.backgroundImages objectAtIndex:indexPath.row];
return cell;
}
возвращает ошибка:
unable to dequeue a cell with identifier cellidentifier - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'.
Так интересно, есть ли способ игнорировать зарегистрировать перо или класс для UITableViewCell
для того, чтобы сократите код в этом случае?