I'm trying change background color of UIView. here is my code:
UIView *myView = [self.view viewWithTag:21];
[self.view bringSubviewToFront:myView];
myView.backgroundColor = [UIColor yellowColor];
I verified :
if ([myView.backgroundColor isEqual:[UIColor yellowColor]])
{
NSLog(@"my view is yellow!");
}
but in the screen of the iPhone never change colors. I tried the same code in different project and it works just fine. Any of you knows what can be wrong?