首页 > 其他 > 详细

保存照片到系统相册(Photo Album)

时间:2016-05-27 20:08:55      阅读:113      评论:0      收藏:0      [点我收藏+]

actionClick:方法里调用:

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

这个时候,我们想知道保存是否成功,所以需要制定回调方法

// 指定回调方法
- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo
{
    if(!error){
        NSLog(@"save success");
    }else{
        NSLog(@"save failed");
    }
}

 

保存照片到系统相册(Photo Album)

原文:http://www.cnblogs.com/dzhs/p/5535842.html

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