Got the code but detailText is only showing in the first ‘column’ in case 0
code is under: cellForRowAtIndexPath
if (indexPath.row == 0) {
cell.detailTextLabel.text = @"A";
}
}
else if (indexPath.row == 1){
cell.detailTextLabel.text = @"B";
}
else if (indexPath.row == 2){
cell.detailTextLabel.text = @"C";
}
else if (indexPath.row == 3){
cell.detailTextLabel.text = @"D";
}
There is an obvious right-brace mismatch, change your code to:
You can shorten that to