gpt4 book ai didi

c# - 如何选择多张照片?

转载 作者:行者123 更新时间:2023-11-29 03:49:10 27 4
gpt4 key购买 nike

我可以使用 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];

代码可以找到here !

关于c# - 如何选择多张照片?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17282294/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com