Ipad で使用している UIImagePickerController がありますが、画像の 1 つを選択しても何も起こりません。ピッカーのコードは次のとおりです。
- (IBAction)addPicture:(id)sender {
CGRect rect = CGRectMake(0, 0, 753, 118);
[popOverController presentPopoverFromRect:rect inView:self.view permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES];
}
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
[self dismissViewControllerAnimated:YES completion:nil];
patientPicture = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
UIImageView *pictureView = (UIImageView *)[imageCell viewWithTag:777];
pictureView.image = patientPicture;
[_imgViewAdd reloadInputViews];
}
-(void)viewDidLoad {
pickerController = [[UIImagePickerController alloc] init];
popOverController = [[UIPopoverController alloc] initWithContentViewController:pickerController];
popOverController.delegate = self;
}
何が起こるかというと、画像ピッカーが正常にロードされますが、写真の1つを選択しようとしても何も起こりません
前もって感謝します