Search code examples
iphoneuiimagepickercontrolleruistatusbar

UIImagePickerController (sourceTypeCamera) doesn't fill screen on top/status bar


I am calling a UIImagePickerController (sourceTypeCamera) as a modalViewController from my MainViewController. However, the UIImagePickerController doesn't fill the screen on top, as the image attached shows. UIImagePickerController strange behavior Any idea what can be causing this, and how to fix?


Solution

  • After lots of tries, I discovered that calling presentViewController from the [[[[UIApplication sharedApplication] delegate] window] rootViewController] solved the problem.