title: Changing Backgroundcolor of the UIView through code intead of XIB in ios
body: <p>I created a windowbased project,then I added a new viewcontroller with xib for user interface checked,and then by entering into the xib,I made some customization to the view,I added few buttons and also changed the background color,</p>
  
  <p>But now I want to change the background color of the view through code and not through xib,</p>
  
  <p>so I tried this in my </p>
  
  <pre><code>-(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;
  
  }
  </code></pre>
  
  <p>but nothing change happened,so please help me out friends</p>
  
  <p>Thanks &amp; Regards
  Ranjit</p>