Getting the path of an ALAsset

前端 未结 3 434
温柔的废话
温柔的废话 2020-12-28 09:35

How can I get the path of each item in an array of ALAssets?

I would like to get the images so that I can add them to an email

e.g.

NSString         


        
3条回答
  •  -上瘾入骨i
    2020-12-28 09:59

    Assuming you already have access to an array of ALAsset objects, you can retrieve their URL like this:

    someAsset.defaultRepresentation.url

提交回复
热议问题