Swift 3 select multiple photos using UIImagePicker

2019-05-09 02:10发布

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).

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.

Thanks in advance

2条回答
贪生不怕死
2楼-- · 2019-05-09 02:35

I also found TLPhotoPicker and DKImagePickerController helpful since the Hyperosolo's image picker is deprecated DKImagePickerController and TLPhotoPicker was a good choice left in swift.Some other references :-

More helpful answer

查看更多
贪生不怕死
3楼-- · 2019-05-09 02:38

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 :)

查看更多
登录 后发表回答