title: iOS: How to cover status bar with container view
body: <p>I have following view hierarchy in my main view controller:</p>
  
  <p><strong>Main view</strong> -> <strong>Container view</strong> -> <strong>Page view controller in container view</strong> -> <strong>Item view controller for every page</strong></p>
  
  <p>I need to make item view controller to place his view above status bar of main view controller. I've added constraint from container view's top to main view's top (not to top layout guide): </p>
  
  <p><a href="https://i.stack.imgur.com/7izks.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7izks.png" alt="top constraint"></a></p>
  
  <p>But item view controller places his view (green one on picture) under status bar anyway:</p>
  
  <p><a href="https://i.stack.imgur.com/suzRA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/suzRA.png" alt="green view"></a></p>
  
  <p>Can I do something to get needed behaviour? I need the status bar to be covered by view from item view controller, not by any view from other view controllers.</p>
  
  <p>Thanks.</p>