Im 采用下列方法,将一个合并的图像保存到Peit光图书馆:
UIImageWriteToSavedPhotosAlbum(viewImage, self, @selector(savedPhotoImage:didFinishSavingWithError:contextInfo:), nil);
利用:
- (void) savedPhotoImage:(UIImage*)image didFinishSavingWithError:(NSError *)error contextInfo: (void *)contextInfo { NSLog(@"%@", [error localizedDescription]);
NSLog(@"info: %@", contextInfo);}
What I would like to get is the path for where the image has been saved, so I can add it to an array which will be used to call up a list of saved items elsewhere in the app.
When I load the image using the picker it displays the path info. However when I save a created image, I can t find where to pull the saved image path.
I have search about the web, but most examples stop at the callback with a nice message to say the image was saved successfully. I would just like to be able to know where it was saved.
我的理解是,一种方法可能是开始界定我自己的道路,但是,由于这种方法对我来说,我只是希望它能够告诉我,它能够拯救到什么地方。