码迷,mamicode.com
首页 > 移动开发 > 详细

怎么将图片保存在手机照片瀑布流主目录下 -----ios

时间:2016-04-21 01:15:05      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:

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

这个方法可以将保存图片保存在瀑布流主目录下

 

这个方法检验有没有保存成功

 

- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo
{
    if (error) {
        [SVProgressHUD showErrorWithStatus:@"保存失败!"];
    } else {
        [SVProgressHUD showSuccessWithStatus:@"保存成功!"];
    }

 

}

 

怎么将图片保存在手机照片瀑布流主目录下 -----ios

标签:

原文地址:http://www.cnblogs.com/beNabenen/p/5415074.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!