I want to add images from photo library or by using camera to my ipad application. I had used same coding as iphone . But the application is crashing. I think this is not t
The answer is in your error message.
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'On iPad, UIImagePickerController must be presented via UIPopoverController'
On an iPad, you can't just use the iPhone method of selecting an image. You need to use a UIPopoverController, you can pass it your UIImagePickerController with:
UIPopoverController* popover = [[UIPopoverController alloc] initWithContentViewController: imagePicker];
Then implement the UIPopoverControllerDelegate protocol in your class.
You can find an example of this here.