tags:

views:

59

answers:

3

HI all, hope u guys r rocking

i just need to know how to change color of labels,programmatically?

thanks n regards shishir

A: 
myLabel.textColor = [UIColor redColor];
Ole Begemann
+4  A: 

Did you even look at the documentation for UILabel? That should always be your first port of call :)

willcodejavaforfood
A: 

myLabel.textColor = [UIColor colorHere]; can change the color of text. But is it possible to change the label color instead of text. Also when i have number of labels how can i group it to change the color of all labels on button click?

Neelam Roy
there is a backgroundColor property in UIView which UILabel inherits from
willcodejavaforfood