Search code examples
iosuilabel

changing the text color of a UILabel


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];

Solution

  • They need to be connected in Interface Builder.