title: How to change status bar background with NavigationBar background image 44px height in iOS 7?
body: <p>I'm using NavigationController with NavigationBar visible. I read from here <a href="https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/TransitionGuide/Bars.html" rel="nofollow">Bars and Bar Buttons</a> that </p>
  
  <blockquote>
    <p>Black, if using UIBarPositionTopAttached. Provided by the window
    background, if using UIBarPositionTop.</p>
  </blockquote>
  
  <p>First, I make my ViewController conform to <code>UIBarPositioningDelegate</code> and implement</p>
  
  <pre><code>- (UIBarPosition)positionForBar:(id &lt;UIBarPositioning&gt;)bar
  {
      return UIBarPositionTop;
  }
  </code></pre>
  
  <p>I then use a 44px height image for NavigationBar</p>
  
  <pre><code>[self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"navbar_background"]
                                                  forBarMetrics:UIBarMetricsDefault];
  </code></pre>
  
  <p>and set window background color </p>
  
  <pre><code>self.window.backgroundColor = [UIColor greenColor];
  </code></pre>
  
  <p>but the result is that the StatusBar background color is still black. I want it to be green</p>
  
  <p>Why and how to fix this ?</p>