From the documentation of UIImagePickerController:
On iPad, present the user interface using a popover. Doing so is valid
only if the sourceType property of the image picker controller is set
toUIImagePickerControllerSourceTypeCamera.
So what they say is:
- On iPad I MUST use a
UIPopoverControllerto display the image picker. - But at the same time, it is limited to
UIImagePickerControllerSourceTypeCamera
How about the other source types such as UIImagePickerControllerSourceTypePhotoLibrary or UIImagePickerControllerSourceTypeSavedPhotosAlbum?
In my case I want the user to choose from his photo library and not take a picture with the camera.
Is there a way to use UIImagePickerController to pick photos from a library on the iPad?
I suspect that documention has a typo in it. I’ve successfully used
UIImagePickerControllerwith othersourceTypeson iPad – just had to make sure it was in aUIPopoverController.