I have added some text to a UITableViewCell by creating the label with the correct coords, then typing the following:
[cell.contentView addSubview:labelDesc];
All is well. I had an issue with the labels “duplicating” and overlapping, but I fixed it by putting the code in the if (cell == nil) function.
Now my question is: When you select the cell it highlights in blue. With the default cell.textLabel.text it goes white when highlighted. This does not happen on my custom labels.
UILabelhas a property named highlightedTextColor. You need to set this property: