Changing label color based on current label color in iPhone dev

Posted by Matt Thomas on Stack Overflow See other posts from Stack Overflow or by Matt Thomas
Published on 2010-05-03T09:30:24Z Indexed on 2010/05/03 9:38 UTC
Read the original article Hit count: 301

Filed under:
|
|
|

I am having trouble figuring out the if statement code for changing the color of a UI label based on the current color of the label. For instance, if the label color is currently red and the correct button is pressed, I want the label color to change to black. If the label color is black I want the label color to change to blue.

Many thanks for any tips.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uilabel