- (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 图片保存到系统相册
最新推荐文章于 2025-06-09 14:35:17 发布