title: ios UIImagePickerController Camera Overlay view's status bar properties
body: <p>hello Everyone I am facing an issue.
  In my app I want to crop an area of image taken from camera. 
  Therefore, I am using UIImagePickerController &amp; it's cameraOverlayView.</p>
  
  <p>The problem is that on iPhone 4S,iPad,iPod - "status bar" is not transparent. 
  On 2nd iPad, "status bar" in camera is transparent. 
   I do not know how to access status bar of UIImagePickerController?</p>
  
  <p>In my code I do some height calculation, in case of transparency I wrongly subtract extra size. And I cannot figure out hot to get size of image inside "shooting area".</p>
  
  <p>Here is some code:</p>
  
  <pre><code>+(CGFloat) statusBarYSize
  {
      CGSize statusBarSize = [[UIApplication sharedApplication] statusBarFrame].size;
      return MIN(statusBarSize.width, statusBarSize.height);
  }
  
  +(CGRect)maxRectForPicker:(UIImagePickerController*)picker
  {
      CGRect maxFrame = picker.cameraOverlayView.frame;
  #warning @"Check that coefficient is equal to such value everywhere...)"
      if (!picker.toolbar.translucent) 
          maxFrame.size.height -=([self statusBarYSize]*2.5); // If transparent should not be subtracted!
      return maxFrame;
  }
  </code></pre>
  
  <p>Here are links on images:</p>
  
  <p>iPhone's image. Camera has the size full screen - status bar.</p>
  
  <p><a href="https://www.dropbox.com/s/7b405h5cavrf819/CorrectSubstraction.jpg" rel="nofollow">https://www.dropbox.com/s/7b405h5cavrf819/CorrectSubstraction.jpg</a></p>
  
  <p>IPad's image. Camera occupies the whole screen.</p>
  
  <p><a href="https://www.dropbox.com/s/7rekl8xen1z3s9b/ShouldNotSubstract.jpg" rel="nofollow">https://www.dropbox.com/s/7rekl8xen1z3s9b/ShouldNotSubstract.jpg</a></p>
  
  <p>Many thanks in advance.
  Siarhei</p>