-(void)saveImage2<span style="font-family: Arial, Helvetica, sans-serif;">PhotosAlbum</span> { UIImageWriteToSavedPhotosAlbum(_image.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]; } NSLog(@"message is %@",message); }
时间: 2024-10-12 01:20:43