I can write photos to camera roll, but how can I delete one?
I remember a couple years ago someone said it is impossible, but I believe I have seen an app recently that did it.
I can write photos to camera roll, but how can I delete one?
I remember a couple years ago someone said it is impossible, but I believe I have seen an app recently that did it.
To delete photo from camera roll is not possible from application. Apple has never given access of delete photo of camera roll from application.
This is now possible (since iOS 8). Hopefully this helps other folks who end up here from Google.
To do this, check out the deleteAssets
method of the PHAssetChangeRequest
class.
I could be wrong but I do not think you can delete photos that were not created or stored by your app. AT least I have not seen an Apple API to do that.
You can try 百度魔拍 it really can delete photo from camera roll. (https://itunes.apple.com/cn/app/bai-du-mo-pai/id655426839?mt=8)