0

我可以使用 UIImagePickerController 一次选择一张照片,但我需要使用 Xamarin 选择多个相册?

    UIImagePickerController picker = new UIImagePickerController();
picker.AllowsEditing = false;
        picker.SourceType = UIImagePickerControllerSourceType.SavedPhotosAlbum;
        this.PresentModalViewController(picker, true);
4

1 回答 1

1

...有 ELCImagePickerController 允许多个图像选择示例

// Create the image picker
ELCImagePickerController *imagePicker = [[ELCImagePickerController alloc] initImagePicker];
imagePicker.maximumImagesCount = 4; //Set the maximum number of images to select, defaults to 4
imagePicker.returnsOriginalImage = NO; //Only return the fullScreenImage, not the fullResolutionImage
imagePicker.imagePickerDelegate = self;

//Present modally
[self presentViewController:elcPicker animated:YES completion:nil];

// Release if not using ARC
[imagePicker release];

代码可以在 这里找到!

于 2014-01-24T20:07:55.537 回答