Quote:
Originally Posted by Frankie
How do I change the color of a Label when it reaches a certain point?
I have this equation and the Label switches to the answer. But when the answers reaches certain points I want the label to change color. How do I go about doing so?
|
UILabel *mylabel; // Connected in IB to a field on the form.
When the state reaches the time you want to change the color on
[mylabel setTextColor:[UIColor redColor]]; // Foreground color
[mylabel setBackgroundColor:[UIColor redColor]]; // Background color
Check the api docs for the other color values and how to roll your own.
Hope this helps.
Rich