如何选择多张照片

本文关键字:照片 张照片 选择 何选择 | 更新日期: 2023-09-27 18:19:39

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

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

如何选择多张照片

。。。有一个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];

代码可以在这里找到!