Reputation: 179
I just received an error when trying to present a UIImagePickerController modally. The error essentially stated I needed to show the ImagePicker using a UIPopoverController.
My problem is I am already in a UIPopoverController, and the error is suggesting I may need to show two popover controllers, my own, and then UIImagePickerController. This is of course against the iPad HIG and grounds for app rejection.
Any elegant ways around this? Are two popovers allowed in this case? Or am I going to have bite the bullet and close my old popover (which I really don't want do ), show the image picker, then reshow my old one?
Thanks!
Upvotes: 1
Views: 1273
Reputation: 94804
As another option, you could use the popover's setContentViewController:
or setContentViewController:animated:
to change to the UIImagePickerController and then change back to your own view controller.
Upvotes: 2