UIColor app crashing

Posted by coure06 on Stack Overflow See other posts from Stack Overflow or by coure06
Published on 2010-06-08T06:39:39Z Indexed on 2010/06/08 6:42 UTC
Read the original article Hit count: 383

Filed under:
|

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;

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone-sdk