title: IOS 11 StatusBar Changes
body: <p>We are upgrading our mobile application to ios 11, but there is a problem that I couldnt find any solution.</p>
  
  <p>In IOS 10 we are making statusbar and navigationcontroller transparent , so the image below the navigationcontroller were starting from top of the screen.
  However When I build the same code with xcode 9 and ios 11, result became like this:</p>
  
  <p><a href="https://i.stack.imgur.com/1B6WG.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1B6WG.jpg" alt="you can see the problem on top of the image"></a></p>
  
  <p>The code that we were using in IOS 10 and xcode 8 is in below. Do you know what is changed in IOS 11 about navigation bar or status bar ?</p>
  
  <pre><code>if ([self.viewModel profileImage]) {
      if (diff &lt;= 0) {
          self.statusBarBackground.alpha = 1.0;
      } else {
          self.statusBarBackground.alpha = 1.0;
          self.statusBarBackgroundHeight.constant = MIN(statusBarHeight, diff);
      }
  
  }
  </code></pre>
  
  <p>Thanks</p>