I use this command to get the path of an image that I'm saving in iOS library:
UIImage *viewImage = YOUR UIIMAGE // --- mine was made from drawing context
ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];
// Request to save the image to camera roll
[library writeImageToSavedPhotosAlbum:[viewImage CGImage] orientation:(ALAssetOrientation)[viewImage imageOrientation] completionBlock:^(NSURL *assetURL, NSError *error){
if (error) {
NSLog(@"error");
} else {
NSLog(@"url %@", assetURL);
}
}];
I get this code in this topic:
I realize some test and the console log returns me a messange:
url assets-library://asset/asset.JPG?id=408C8B00-23DC-4DCF-9837-C294720940F9&ext=JPG
Now I want to pick this Path and put inside a UIImageView, I try this:
imageView.image = @"assets-library://asset/asset.JPG?id=408C8B00-23DC-4DCF-9837-C294720940F9&ext=JPG";
But doesn't work, someone can help me?