title: How to change UINavigationBar background color from the AppDelegate
body: <p>I know how to change the <code>UINavigationBar</code> background image by doing </p>
  
  <pre><code>[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"nabbar"] forBarMetrics:UIBarMetricsDefault];
  </code></pre>
  
  <p>and I know how to set the bar to different colors within each <code>Views</code>..... Now I want to change the background color <em>without using an image</em> to a solid color from the <code>app delegate</code>. I do not want to set it each time from each view and I do not want to write a <code>CGRect</code>.</p>
  
  <p>I tried  <code>[[UINavigationBar appearance] setBackgroundColor:[UIColor colorWithRed:33/255.0 green:34/255.0 blue:36/255.0 alpha:1.0]];</code> but I doesn't work and I cant find a code anywhere that works in the app delegate. </p>
  
  <p>Could anyone please point me in the right direction?</p>