保存图片到相册

//保存图片到相册
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
    }
}

你可能感兴趣的:(保存图片到相册)