Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 473
Natan R. Avatar asked Nov 03 '22 22:11

Natan R.


1 Answers

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

like image 125
Natan R. Avatar answered Nov 15 '22 06:11

Natan R.