- (void)saveImageToAlbum
{
UIImageWriteToSavedPhotosAlbum(self.filterView.image, self, @selector(imageSavedToPhotosAlbum:didFinishSavingWithError:contextInfo:), nil);
}
- (void)imageSavedToPhotosAlbum:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo
{
NSString *message = @"";
if (!error) {
message = @"成功保存到相册";
}else
{
message = [error description];
}
[XHToast showCenterWithText:message];
}ios 图片保存到系统相册
保存图片到相册的方法
最新推荐文章于 2021-08-19 18:25:12 发布
本文介绍了一个简单的Objective-C方法,用于将UIImage对象保存到用户的相册中,并提供了一个回调方法来确认保存操作是否成功。
1009

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



