title: Status bar color changed when change UINavigationBar appearance backgroundimage
body: <p>I use this line of code to change navigation bar background:</p>
  
  <pre><code>    [[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"image.png"] forBarMetrics:UIBarMetricsDefault];
  </code></pre>
  
  <p>in iOS6, it works, but in iOS5, background of the status bar is changed too, as shown in this image:
  <img src="https://i.stack.imgur.com/MBUXd.png" alt="enter image description here"></p>
  
  <p>how does this happen. Thanks in advance.</p>
  
  <p>One more thing, I just want to change the color of <code>UINavigationBar</code>, so I used this code:</p>
  
  <pre><code>[[UINavigationBar appearance] setTintColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"image.png"]]];
  </code></pre>
  
  <p>It works in iOS6 quite well, but does not in iOS5. What is the reason?</p>