如何选择多张照片?

时间:2013-06-24 18:20:57

标签: c# ios iphone xamarin.ios xamarin

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

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

1 个答案:

答案 0 :(得分: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];

可以找到代码here