- (void)action_save_image:(id)sender
{
//UIImageWriteToSavedPhotosAlbum(image_gallery.image, nil, nil, nil);
UIImageWriteToSavedPhotosAlbum(image_gallery.image,self,(SEL)@selector(image:didFinishSavingWithError:contextInfo:), nil);
}
#if 1
- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo
{
if (error == nil)
show_alert_view(@"This picture has been saved to your photo album.", @"Picture Saved");
else
show_alert_view(@"Please try it again later.", @"Saving Failed");
}
#endif
iphone开发——保存图片到相册及容错处理
最新推荐文章于 2024-08-06 18:04:39 发布