title: How to get a transparent status bar like the image shown below?
body: <p><a href="https://i.stack.imgur.com/ZNg4K.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZNg4K.jpg" alt="enter image description here"></a></p>
  
  <p>I need a transparent status bar as shown in the image below. </p>
  
  <p>I tried this,</p>
  
  <pre><code>UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"];
  
  if ([statusBar respondsToSelector:@selector(setBackgroundColor:)]) {
      statusBar.backgroundColor = [UIColor clearColor];
  }
  </code></pre>
  
  <p>But this basically gives the same result as UIStatusBarStyleLightContent.</p>