title: iOS Navigation Bar background color
body: <p>I am new to iOS development, I facing a strange problem. In <strong>viewDidLoad</strong></p>
  
  <p>I had written a code like this</p>
  
  <pre><code>self.navigationController.navigationBar.backgroundColor= [UIColor colorWithRed:189.0/255.0 green:105.0/255 blue:105.0/255 alpha:1.0];
  </code></pre>
  
  <p>this is working fine and changed the navigation bar background color, the problem is in the top of the navigation bar there is white bar showing (that has Carrier, Battery, time), I want that background color also changed... so I tried the below code</p>
  
  <pre><code>[[UINavigationBar appearance] setBackgroundColor:[UIColor colorWithRed:189.0/255.0 green:105.0/255 blue:105.0/255 alpha:1.0]];
  </code></pre>
  
  <p>But nothing changed, it is showing same white background color, I would like to know whats the mistake I am doing</p>