У меня есть этот простой код:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
cell.accessoryType=UITableViewCellAccessoryDetailDisclosureButton;
}
// Configure the cell...
NSString *subtitle = [NSString stringWithString: @"All about the color "];
cell.detailTextLabel.text=subtitle;
cell.textLabel.text = [authorList objectAtIndex: [indexPath row]];
return cell;
}
Проблема в том, что мои субтитры не отображаются. Что я делаю не так? Пожалуйста, помогите. Спасибо.