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