Swift 3 使用 UIImagePickerController 选择多张照片 [英] Swift 3 select multiple photos using UIImagePickerController

查看:62
本文介绍了Swift 3 使用 UIImagePickerController 选择多张照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 UIImagePickerController,我用它从库中选择一张照片,或者用相机拍一张照片,然后在 UIImageView 中显示所选照片.我想稍后上传这张照片到一个API(它仍然不知道如何上传照片,从来没有做过).

I have a UIImagePickerController which with it I select a photo from Library, or take a photo with Camera and then show the selected photo in a UIImageView. I want to upload this photo later to an API (which still don't know how to upload photos, have never done it).

所以我想要的是像 WhatsApp 选择照片功能这样的功能,你可以选择让我们说 20 张照片,然后你可以看到它们.(我的意思是我只有一个 UIImageView 并且只能显示一张照片.

So what I want is a feature like WhatsApp selecting photos feature which you can select let's say 20 photos and then you can see them. (I mean for my case I only have one UIImageView and can only show one photo.

解决办法是什么?请记住,我想稍后上传这些照片.

What is the solution? please keep in mind that I want to upload this photos later.

提前致谢

推荐答案

As Ethan Halprin 评论,我使用了https://github.com/hyperoslo/ImagePickera> 它解决了我的问题.它看起来非常漂亮,我认为客户会喜欢它 :)

As Ethan Halprin commented, I used https://github.com/hyperoslo/ImagePicker and it solved my issue. It looks really nice and I think the customer will like it :)

这篇关于Swift 3 使用 UIImagePickerController 选择多张照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆