I’m seeing a weird animation of the camera iris when I present a UIImagePickerController in a UIPopoverController with the following code:
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
[imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera];
[popover setContentViewController:imagePicker animated:YES];
I should also mention that the UIPopoverController is already presented with another content view controller at this point and thus the call to setContentViewController is changing the popover’s content to the image picker.
This is what is looks like when the image picker is shown:

What is going on here?
After months of stewing over this, I came up with the solution!
The unsightly black bar below the shutter animation has to do with the fact that the
UIPopoverControllerhas aUINavigationControlleras it’s content view controller before setting theUIImagePickerControlleras the content view controller. The height of the black bar is the same height as the navigation bar of theUINavigationController.Anyways, the solution was to set the popover content size to
[imagePicker contentSizeForViewInPopover]before I set theUIPopoverController'scontent view controller to theUIImagePickerController.Here’s some code:
The key is this call right here: