pma*_*ing 7 uiimage ios swift phasset swift3
我的应用程序中的函数返回图像,我现在正在尝试获取图像creationDate
和location
.
使用/不使用PHAsset这怎么可能?
根据 Apple 的文档,您应该能够使用以下方法来做到这一点:
let location = asset.location
let creationDate = asset.creationDate
Run Code Online (Sandbox Code Playgroud)
它们是PHAsset类的属性。
看一下:location和creationDate。