[英]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.我是 IOS 的新手,我想 select 使用 swift4 从照片库中获取多个图像并进入图像数组。请帮我这样做。
You can not use the multiple image in UIImagepickercontroller u have to use assetlibrary for it.您不能在 UIImagepickercontroller 中使用多个图像,您必须为此使用资产库。
You can use a custom image picker.您可以使用自定义图像选择器。 I think ImagePicker is best for Swift我认为ImagePicker最适合 Swift
Apple introduced PHPickerViewController in iOS14.苹果在 iOS14 中引入了 PHPickerViewController。
Advantages优点
Documentation - https://developer.apple.com/documentation/photokit/phpickerviewcontroller文档 - https://developer.apple.com/documentation/photokit/phpickerviewcontroller
Video - https://developer.apple.com/videos/play/wwdc2020/10652/视频 - https://developer.apple.com/videos/play/wwdc2020/10652/
Hope this helps!希望这可以帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.