ios保存照片到照片库

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, @"确定");
}
}

posted on 2012-11-22 11:14  kiao295338444  阅读(160)  评论(0编辑  收藏  举报

导航