Ipad 在PopOver中的UIViewController中显示UIImagePicker的方法

Ipad 在PopOver中的UIViewController中显示UIImagePicker的方法,ipad,ios7,uiimagepickercontroller,uipopovercontroller,Ipad,Ios7,Uiimagepickercontroller,Uipopovercontroller,我试图通过PopOver在UIViewController中显示UIImagePickerController。 我通过以下方式添加了一个PopOver: overlayTableViewCtrl = [[OverlayTableViewController alloc] initWithStyle:UITableViewStylePlain]; UINavigationController *navCtrl=[[UINavigationController alloc] initWit

我试图通过PopOver在UIViewController中显示UIImagePickerController。 我通过以下方式添加了一个PopOver:

overlayTableViewCtrl = [[OverlayTableViewController alloc] initWithStyle:UITableViewStylePlain];
    UINavigationController *navCtrl=[[UINavigationController alloc] initWithRootViewController:selectedPunchTableViewCtrl];
    popOverViewController= [[UIPopoverController alloc] initWithContentViewController:navCtrl];

 [popOverViewController presentPopoverFromRect:rect inView:self.view permittedArrowDirections:UIPopoverArrowDirectionRight animated:YES];
然后,我通过在UIViewController上添加UIImagePickerController

[self presentViewController:cameraPickerCtrl animated:YES completion:nil];
我已为我的ViewCtrl设置了内容大小:

self.preferredContentSize = CGSizeMake(500, 400);
我通过
cameraPickerCtrl.modalPresentationStyle=UIModalPresentationCurrentContext在我的视图中看到相机

但它看起来有一个黑色的覆盖层。我还添加了一个cameraViewTransform,但它对UIViewController的自定义大小没有帮助,因为它的纵横比采用了UIScreen边界

是否有人尝试过在navigationController层次结构中自定义大小的UIViewController中使用UIImagePickerController?有没有在ipad上添加故事板的好例子