I save the merged image in the iPhone photo library using:
UIImageWriteToSavedPhotosAlbum(viewImage, self, @selector(savedPhotoImage:didFinishSavingWithError:contextInfo:), nil);
And getting a callback using:
- (void) savedPhotoImage:(UIImage*)image didFinishSavingWithError:(NSError *)error contextInfo: (void *)contextInfo { NSLog(@"%@", [error localizedDescription]); NSLog(@"info: %@", contextInfo);}
I would like to get a path for where the image was saved, so I can add it to an array that will be used to call up a list of saved items elsewhere in the application.
When I upload an image using the collector, it displays the path information. However, when I save the created image, I cannot find where to drag the saved image path.
I have an Internet search, but most examples dwell on a callback with a good message to say that the image was successfully saved. I just wanted to know where he was saved.
I understand that one way could be to define my own paths, but since the method does this for me, I just hoped it could tell me where it was stored.
ios iphone save uiimage
Ben Dec 16 2018-10-12T00: 00Z
source share