您的位置:首页 > 移动开发 > IOS开发

iOS 图片保存手机相册

2014-11-28 15:27 447 查看
UIImageWriteToSavedPhotosAlbum(app.erweiImg, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);

- (void)image:(UIImage *)image 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; }}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: