cell.textLabel.text = [NSString stringWithFormat:@"your name: %@", yourName];
I need yourName to appear in red (while "your name" stays the default black color). Possible? How?
cell.textLabel.text = [NSString stringWithFormat:@"your name: %@", yourName];
I need yourName to appear in red (while "your name" stays the default black color). Possible? How?
You will need to create 2 UILabel
s, one containing the 'your name' and the second UILabel
has the variable. The first has a textcolour of black and the second is red
Have a look here for creating custom UITableViewCell
s