ios - How to get ALAsset from saved photo -


is there way know alasset corresponding uiimage?

i use uiimagewritetosavedphotosalbum saving photo , need identify in asset list

update :

i used writeimagetosavedphotosalbum instead of uiimagewritetosavedphotosalbum

alassetlibrary.writeimagetosavedphotosalbum(image.cgimage, orientation: orientation) { (url, error) -> void in     alassetlibrary.assetforurl(url, resultblock: { (asset) -> void in         //code     }, failureblock: { (error) -> void in         //code     }) } 

i use uiimagewritetosavedphotosalbum saving photo , need identify in asset list

if need identify resulting asset, why using uiimagewritetosavedphotosalbum? "stupid" function.

if want save image asset library in such way have access asset, need save "smart" way, such alassetslibrary's writeimagetosavedphotosalbum - has completion handler hands url of resulting asset.


Popular posts from this blog