exception 'NSInvalidArgumentException',
>> reason: 'On iPad, UIImagePickerController must be presented via
>> UIPopoverController'
>
>
> That's because on iPad, image pickers must be used within a popover (just
> what the exception instructs). I s
OS so you won't crash on unknown selector.
>
> And now it crashes telling me I have to use a popover:
>
> *** Terminating app due to uncaught exception 'NSInvalidArgumentException',
> reason: 'On iPad, UIImagePickerController must be presented via
> UIPopoverCont
aught exception 'NSInvalidArgumentException',
> reason: 'On iPad, UIImagePickerController must be presented via
> UIPopoverController'
That's because on iPad, image pickers must be used within a popover (just what
the exception instructs). I strongly suggest you read the i
pickerParent fromTop:YES];
[self presentModalViewController:mainPicker
animated:YES];
}
}
And now it crashes telling me I have to use a popover:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: 'On iPad, UIImag