简体   繁体   中英

Select multiple image from photo library using swift

I am new in IOS and i want to select multiple image from photo library using swift4 and get into array of images.Please help me to do this.

You can not use the multiple image in UIImagepickercontroller u have to use assetlibrary for it.

You can use a custom image picker. I think ImagePicker is best for Swift

Apple introduced PHPickerViewController in iOS14.

Advantages

  • No additional permission need to be implemented (its private by default)
  • Supports Multi-selection (limit can also be specified)
  • Zooming and previewing the selection

Documentation - https://developer.apple.com/documentation/photokit/phpickerviewcontroller
Video - https://developer.apple.com/videos/play/wwdc2020/10652/

Hope this helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM