PDA

View Full Version : Can you set the font color for NSString (UIStringDrawing)




fenrus110
Dec 12, 2008, 03:55 PM
Is there anyway to set the text color of this? I can't seem to find a property and UIFont doesn't seem to handle color.

I kind regret making my table cell like how they did in TableViewSuite4. The way they made the cells in EditableDetailView sample is so much more elegant and powerful.



detz
Dec 12, 2008, 04:41 PM
[label setTextColor:[UIColor redColor]];

fenrus110
Dec 12, 2008, 04:57 PM
an NSString drawing isn't a UILabel though...

PhoneyDeveloper
Dec 13, 2008, 12:58 AM
CGContextSetRGBFillColor()