Question

I am trying to store a copy of the data in an AlAsset into my database as the URL of an image retrieved from my photo library. To do this, I'd like to convert it into an NSString, but I'm not sure how.

My intent is to later pull the URL from the database, and load the AlAsset or NSString path, then use it to load a UIImage. Any help or suggestions would be greatly appreciated.

Was it helpful?

Solution

NSLog(@"path : %@", [asset valueForProperty:ALAssetPropertyAssetURL]);

And refer my this answer for how to get that image back using this URL:name of the picked image xcode

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top