title: UIImagePickerController in iOS 7 status bar
body: <p>In io7,the status bar on top a view is a nightmare.Fortunally i managed to make it work so it will be placed above the view.I did it like this:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      if ([[[UIDevice currentDevice] systemVersion] floatValue] &gt;= 7.0) {
           self.view.backgroundColor=[UIColor colorWithRed:(152/255.0) green:(204/255.0) blue:(51/255.0) alpha:1] ;
          CGRect frame = self.topNav.frame; frame.origin.y = 20;
          self.topNav.frame = frame;
      }
  ....
  }
  </code></pre>
  
  <p>Now my status bar is above my navigation bar.</p>
  
  <p>But when it comes to calling <code>UIImagePickerController</code> things are different.The above code has no effect.
  I tried to do this:</p>
  
  <pre><code>- (void)showImagePickerForSourceType:(UIImagePickerControllerSourceType)sourceType
  {
  
  
      UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
  
   if ([[[UIDevice currentDevice] systemVersion] floatValue] &gt;= 7.0) {
  
              CGRect frame = self.imagePickerController.frame; frame.origin.y = 20;
             self.imagePickerController.frame = frame;
          }
  
      imagePickerController.modalPresentationStyle = UIModalPresentationCurrentContext;
      imagePickerController.sourceType = sourceType;
      imagePickerController.delegate = self;
      self.imagePickerController = imagePickerController;
      self.imagePickerController.allowsEditing=YES;
  ....
  }
  </code></pre>
  
  <p>and the result is:</p>
  
  <p><img src="https://i.stack.imgur.com/7DmnD.jpg" alt="enter image description here"></p>
  
  <p>Any chance that my status bar(when displaying the camera for taking pictures) above the camera controls?</p>
  
  <p>Thank you.</p>