将突破保存到本地相册
来源:互联网 发布:mac 虚拟机 win10 4g 编辑:程序博客网 时间:2024/06/06 03:49
点击按钮,将self.imageView上面的image内容保存到本地相册,并指定判断保存成功与否的方法imageSavedToPhotosAlbum:didFinishSavingWithError:contextInfo:
- (IBAction)saveImageToAlbum:(id)sender {
UIImageWriteToSavedPhotosAlbum(self.imageView.image, self, @selector(imageSavedToPhotosAlbum:didFinishSavingWithError:contextInfo:), nil);
}
// 实现imageSavedToPhotosAlbum:didFinishSavingWithError:contextInfo:方法
- (void)imageSavedToPhotosAlbum:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo
{
NSString *message;
if (!error) {
message = @"成功保存到相册";
}else
{
message = [error description];
}
NSLog(@"message is %@",message);
}
0 0
- 将突破保存到本地相册
- 将图片保存到相册(本地)
- 将图片保存到本地相册
- 将ImageView中的图片保存到本地相册
- 将相机/相册的图片保存到本地沙盒
- iOS 将图片保存到iPhone本地相册
- 图片保存到本地相册
- 保存图片到本地相册
- 保存图片到本地相册
- 保存图片到本地相册
- 保存图片到本地相册
- 保存图片到本地相册
- 将UIImage保存到相册
- 将图片保存到相册
- 将Bitmap保存到相册
- 将图片保存到相册
- 将图片保存到相册
- 将图片保存在本地相册中
- Android自定义控件下拉刷新
- 为什么进入Block块的成员变量要加__block修饰
- 数据结构实验-停车场模拟系统
- 总结oninput、onchange与onpropertychange事件的用法和区别
- NET 2.0(C#)调用ffmpeg处理视频的方法
- 将突破保存到本地相册
- Yelp app是如何使用Glide优化图片加载的
- 设计模式学习---装饰者
- getspent
- tomcat学习(三) tomcat窗口名称修改
- 第十一章 线程
- redhat和Ubuntu网络配置文件
- [LeetCode] 9. Palindrome Number
- voicewo在线语音识别转换jQuery插件