assetslibrary - Obtain ReferenceURL after saving an image using UIImageWriteToSavedPhotosAlbum()

I want to obtain the referenceURL to the image that I saved into camera roll using UIImageWriteToSavedPhotosAlbum().iOS 4.1 or above can do it easily by using AssetLibrary.ALAssetsLibraryWriteImageCompletionBlock completionBlock = ^(NSURL* url, NSError* error) { if (error == nil) { savedURL = url; }}; UIImage * originalImage = [info objectForKey:UIImagePickerControllerOriginalImage];NSMutableDictionary * metadata = (NSMutableDictionary *)[info objectForKey:UIImagePickerControllerMediaMetadata]; ALAssetsLibrary *library = [[ALAs...Read more