Quote:
Originally Posted by rdominelli
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
|
So if I have this.
Code:
float tipTotal = tipSelected * 3.8 / [billTotal.text floatValue];
tipAmount.text = [NSString stringWithFormat:@"Tip Percentage: %.2f%", tipTotal];
How do i get it to change to red every time it reaches 20 and up but remain green only on 1-19?
Also thanks for the reply Rich!