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; }}
- (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; }}
相关文章推荐
- iOS之保存图片到手机相册中
- iOS开发之保存图片到手机相册
- iOS开发之保存图片到手机相册
- 保存图片/视频到相册 保存完成后通知事件 IOS
- IOS 保存图片至相册
- iOS-将图片保存到照片相册中
- ios uiwebview 长按图片,保存到本地相册
- IOS UIImagePickerController 保存图片到 相册
- 关于IOS UIView 中会知道路径转换成相片并保存到手机相册中
- ios uiwebview 长按图片,保存到本地相册
- 将图片保存到ios相册
- 在手机相册中保存图片失败
- IOS 保存图片至相册
- iOS保存图片信息到相册
- ios--保存图片到本地相册
- ios uiwebview 长按图片,保存到本地相册
- iOS 保存图片至相册
- iOS保存图片信息到相册
- ios选择相册图片并保存
- ios 代码截取当前view的图片并保存在ios相册