iOS 图片保存手机相册
UIImageWriteToSavedPhotosAlbum(app.erweiImg, self, @selector(p_w_picpath:didFinishSavingWithError:contextInfo:), nil);
- (void)p_w_picpath:(UIImage *)p_w_picpath didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo
{
UIAlertView *alert;
if (error == nil)
{
alert = [[[UIAlertView alloc]initWithTitle:@"温馨提示" message:@"保存成功" delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil]autorelease];
[alert show];
return;
}
else
{
alert = [[[UIAlertView alloc]initWithTitle:@"保存失败" message:@"请打开 设置-隐私-照片 来进行设置" delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil]autorelease];
[alert show];
return;
}
}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。