Reputation: 55
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.
Upvotes: 2
Views: 1008
Reputation: 9101
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
Upvotes: 2