deleting a camera roll asset using Photos framework

旧时模样 提交于 2019-12-04 07:26:45

Let me make sure I understand the question:

1) You use the photos framework to delete an asset with PHAssetChangeRequest.deleteAssets(assetToDelete)

2) you go to the Photos app and view the Recently Deleted photos, but you do not see the image/asset which you just deleted in the trash in the photos app.

If this is what you are experiencing, it is because you have deleted an asset that is not in the users 'camera roll' but is a PHAsst from the photostream from another device. When you delete these assets, they are not sent to the trash and are deleted differently than a normal photo. I would recommend going to the photos app and deleting the same asset--if it is a photostream asset, you will see that it never goes into the trash.

If this isn't the issue you are facing, please try to provide more detail.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!