首页 > 移动平台 > 详细

iOS 保存图片到本地

时间:2017-10-09 17:17:33      阅读:232      评论:0      收藏:0      [点我收藏+]

- (void)loadImageFinished:(UIImage *)image

{

    UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), (__bridge void *)self);

}

 

 

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

{

    if (error == NULL) {

        

        [EJProgressHUD showSuccess:@"保存成功!"];

        

    }else

    {

        [EJProgressHUD showError:@"保存失败"];

    }

    // NSLog(@"image = %@, error = %@, contextInfo = %@", image, error, contextInfo);

}

 

iOS 保存图片到本地

原文:http://www.cnblogs.com/jsonLing/p/7641761.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!