保存图片到相册
2016-09-20 本文已影响0人
zhouios
//保存图片到相册
UIImageWriteToSavedPhotosAlbum(self.scanImage, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);
- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error
contextInfo:(void *)contextInfo
{
if (error != NULL) {
//Show error message...
}else{
// Show message image successfully saved
}
}