简体   繁体   English

如何在iOS中的PhotosAlbum中删除图像

[英]How to delete a image in PhotosAlbum in iOS

In my iPhone application I am saving an image on Save button click, using the code 在我的iPhone应用程序中,我使用以下代码在“保存”按钮上单击保存图像

UIImageWriteToSavedPhotosAlbum(previewImg.image, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);

So, is there any way to delete last saved image through code? 那么,有什么方法可以通过代码删除最后保存的图像?

Using UIImageView *photoImageView; 使用UIImageView *photoImageView; show the photo it ok then save else retake or rechoose the photo again 可以显示照片,然后保存,否则重新拍摄或重新选择照片

see this link 看到这个链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM