cell.textLabel.text = [NSString stringWithFormat:@"your name: %@", you开发者_Python百科rName];
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
精彩评论