Hi ,i have a contact form made with xib file it works but i can't change the background color of the view programmatically
i tryed with this but nothing, i know how to put an image background but i need to change the color on the fly
how can i do? thank you for help
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
self.view.backgroundColor = [UIColor redColor];
}
- (void)viewDidAppear:(BOOL)animated
{
[self.view setBackgroundColor:[UIColor redColor]];
}