title: Change the status bar background color color past iOS 7
body: <p>I want to change background color of status bar on iOS 7, and I'm using this code:</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      [UIApplication sharedApplication].statusBarHidden = NO;
  
          self.window.clipsToBounds = YES;
          [[UIApplication sharedApplication] setStatusBarStyle: UIStatusBarStyleLightContent];
          self.window.frame =  CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height-20);
          self.window.bounds = CGRectMake(0, 20, self.window.frame.size.width, self.window.frame.size.height);
  
          ...
          ...
  
  
  }
  </code></pre>
  
  <p>When I write this it shows the status bar with a black background; I want it to have a red background.</p>
  
  <p><img src="https://i.imgur.com/0R1nydK.png" alt=""></p>
  
  <p>How can change the color of the status bar to have a red background instead of black?</p>