Advertise here




Advertise here

Howdy, Stranger!

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

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="http://davidbits.blogspot.com" target="_blank">lazy blogs</a><br />
The Lord's holy name be praised.

Replies

Sign In or Register to comment.