views:

16

answers:

1
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?

A: 

You will need to create 2 UILabels, 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 UITableViewCells

Liam
ugh, what a pain...
sol
You could also just create and add the UILabels dynamically when you are drawing the cell. Less work, just need to lay it out in code instead of IB
Liam