UIPopoverController and UIImagePickerController crash
问题 Here is the set up of my view: When the UIBarButtonItem is clicked, it should bring up a UIImagePickerController . I have to do this using a UIPopoverController , which is invoked by clicking on the "reset" button, because it is necessary on the iPad. Here is my code: -(IBAction) btnReset:(id)sender { [self chooseImage]; } -(void) chooseImage { if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]) { imagepicker = [[UIImagePickerController alloc]