UIColor app crashing
- by coure06
i have a global variable
UIColor *textColor;
I am update this variable by the code
textColor = [UIColor colorWithRed:fr green:fg blue:fb alpha:1.0];
then assigning this color to Label like this
myLabel.textColor = textColor;
It only work once, when i again call with updated values and assign label new values app crashes...
textColor = [UIColor colorWithRed:fr green:fg blue:fb alpha:1.0];
myLabel.textColor = textColor;