public func nohanaImagePicker(_ picker: NohanaImagePickerController, didFinishPickingPhotoKitAssets pickedAssts: [PHAsset])
{
print("Completed\n\tpickedAssets = \(pickedAssts)")
self.getAssetThumbnail(asset: pickedAssts)
picker.dismiss(animated: true, completion: nil)
self.ImageCollectionView.reloadData()
}
任何人都可以解释如何将[PHAsset]值转换为PHAsset
答案 0 :(得分:0)
[PHAsset]
是PHAsset
个对象的数组。您可以像这样选择数组的第一个对象。
let phAsset = pickedAssts.first