Advertise here

Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

change UILabel text color dynamically

david_daviddavid_david Posts: 372Registered Users @ @
edited October 2008 in iPhone SDK Development
hi , how can I change the UILabeltext color dynamically on a button click

I used
lblDesc.textColor = [UIColor redColor];
lblDesc.text = @"clicked";

the text is changing correctly, but the color is not change to red..
I didn't find similar methods of repaint or invalidate for UILabel

please give your valuable comments to do it..
Post edited by david_david on
<a href="" target="_blank">lazy blogs</a><br />
The Lord's holy name be praised.


Sign In or Register to comment.