title: Full screen modal view controller not covering status bar area
body: <p>I'm having a <code>UISplitViewController</code> as root in my story board. The detail view controller is showing an pop over with a view controller embedded in a navigation controller.</p>
  
  <p>I have a button in the pop over view controller that is showing the <code>UIImagePickerController</code> with <code>UIImagePickerControllerSourceTypeCamera</code> as source:</p>
  
  <p><code>
  [self.controller presentViewController:self.imagePickerController animated:YES completion:nil];
  </code></p>
  
  <p>The status bar disappears but there is still a black bar in the status bar area and the <code>UIImagePickerController</code> starts below the status bar. But it is still in full screen height so it is getting cut in the toolbar Here is an image:</p>
  
  <p><img src="https://i.stack.imgur.com/i2Woq.jpg" alt="enter image description here"></p>
  
  <p>If I rotate the screen it jumps to full screen, but then when I dismiss the <code>UIImagePickerController</code> the <code>UISplitViewController</code> is suddenly behind and partly covered by the status bar. But when I rotate it again, the <code>UISplitViewController</code> jumps back to being below the status bar and everything is fine again.</p>
  
  <p>If I instead of the view controller in the pop over present the <code>UIImagePickerViewController</code> from the root view controller like this:</p>
  
  <p><code>
  [self.window.rootViewController presentViewController:self.imagePicker animated:YES completion:nil];
  </code></p>
  
  <p>Then it gets full screen like it should, but the pop over appears in front of the <code>UIImagePickerViewController</code>.</p>
  
  <p><strong>(1) Why isn't the full screen presentation of the <code>UIImagePickerViewController</code> working like it should?</strong></p>
  
  <p><strong>(2) Why is the pop over above the <code>UIImagePickerViewController</code> when I show it from the root view controller?</strong></p>
  
  <p><strong>(3) What is the proper way to solve this?</strong></p>