How to judge the color of UILabel?

Posted by william-hu on Stack Overflow See other posts from Stack Overflow or by william-hu
Published on 2010-04-22T09:29:21Z Indexed on 2010/04/22 9:33 UTC
Read the original article Hit count: 337

Filed under:

UILabel *templabel = [self.wallBoxArray objectAtIndex:i]; for( int i = 0 ; i < [self.wallBoxArray count]; i++) { if(templabel.backgroundColor == [UIColor greenColor]) { NSLog(@"the color isn green");
} } There are many label's in my array. They all initialized with green color. But i judged that way ,why cant print " the color isn't green.Thank you.

© Stack Overflow or respective owner

Related posts about iphone-sdk-3.0