changing the text color of a UILabel

Viewed 57218

Hi Im trying to change the text color of a UILabel in one of my views but having no luck.

Is there something quite obvious that Im not doing in this code?

self.nameTopRight.backgroundColor = [UIColor redColor];
self.nameBottomRight.textColor = [UIColor redColor];
4 Answers

You can also set the UIColor via RGB values like so:

myLabel.textColor= [UIColor colorWithRed:(160/255.0) green:(97/255.0) blue:(5/255.0) alpha:1];
Related