Текст и изображение отображаются правильно, но detailText isnt.UITableView не показывает detailText
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"CooperCell";
UITableViewCell *cell = [tableView
dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc]
initWithStyle:UITableViewCellStyleSubtitle
reuseIdentifier:CellIdentifier];
}
cell.textLabel.text = @"title;
cell.detailTextLabel.text = @"subtitle";
UIImage *cellImage = [UIImage imageNamed:@"first.png"];
cell.imageView.image = cellImage;
return cell;
}
Я установил правильный стиль ячейки, что еще?
Что вы пробовали? Я попытался разобраться с проблемой ... несколько вопросов и ответов с точно таким же вопросом возникло. –
На самом деле это была та же проблема. Должен ли я удалить этот вопрос? – 4ndro1d
@ 4ndro1d возвращает любую ячейку? – iAppDeveloper