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.