ios保存照片到照片库
发布日期:2021-08-16 15:55:11 浏览次数:4 分类:技术文章

本文共 464 字,大约阅读时间需要 1 分钟。

UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);

 

//结果回调方法

#pragma mark - 保存照片到本地照片库的回调

- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo
{

if (error == nil)

{
[[AutoDismissView instance] showInView:self.view
title:@"照片保存至照片库"
duration:.5];
}
else
{
ALERT_MSG(@"照片保存本地失败", nil, @"确定");
}
}

转载于:https://www.cnblogs.com/kiao295338444/articles/2782243.html

转载地址:https://blog.csdn.net/weixin_30810239/article/details/98552258 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:第十七章 包
下一篇:mongodb中获取图片文件<标记>

发表评论

最新留言

初次前来,多多关照!
[***.217.46.12]2024年04月04日 10时51分40秒