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

  • PiruzPiruz Posts: 49Registered Users
    edited October 2008
    This method is the right method.
    I'm testing that and it works fine.

    Your bug is not here, I think.
    · ·
  • david_daviddavid_david Posts: 372Registered Users @ @
    edited October 2008
    ooops !! its my mistake.. I set to another label..

    hi piruz, thanks for the response. :)
    <a href="http://davidbits.blogspot.com" target="_blank">lazy blogs</a><br />
    The Lord's holy name be praised.
    · ·
Sign In or Register to comment.