0
我刚开始学习Objective c。现在,我想在“大”标题下标题(小灰色文本)。我使用的代码:xcode中的解释器
cell.detailTextLabel.text = @"Test";
但在模拟器中我看不到一个标题下。
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
// Configure the cell...
cell.textLabel.text = [self.authorList objectAtIndex:[indexPath row]];
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
return cell;
}
谢谢/ Dankjewel Tom :) – Blazer