I created a windows-based project, then added a new view manager with xib to test the user interface, and then, entering in xib, I made some settings for the view, added some buttons and also changed the background color.
But now I want to change the background color as code, not via xib,
so I tried this in my
-(void)viewDidLoad
{
UIColor *myColor = [UIColor colorWithRed:(128.0 / 255.0) green:(90.0 / 255.0) blue:(200.0 / 255.0) alpha: 1];
self.view.backgroundcolor = mycolor;
}
but nothing has changed, so please help me with friends
Thanks and Regards Ranjit
source
share