- (void)save
{
// 将图片写入相册
UIImageWriteToSavedPhotosAlbum(self.imageView.image, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);
}
- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo
{
if (error) {
NSLog(@"保存失败!");
} else {
NSLog(@"保存成功!");
}
}
把图片保存到相册
最新推荐文章于 2024-08-04 11:18:11 发布
4876

被折叠的 条评论
为什么被折叠?



