在IOS中从iPhone删除资产(图片或视频) [英] Delete an asset (picture or video) from IPhone in IOS
问题描述
我正在使用Iphone应用程序,可以使用Assetslibrary枚举资产并将其加载到表格视图中.用户可以在应用程序中删除一行(图片/视频),但是如何直接从我的应用程序更新Iphone相册?否则,刷新后,表视图将重新加载先前删除的资产.
I am working on an Iphone app and I can enumerate assets using the Assetslibrary and load them into a table view. The user can delete a row (a picture / video) in the app but how do I UPDATE the Iphone photo album directly from my app? Otherwise on refreshing, the tableview will reload the previously deleted asset.
推荐答案
https://stackoverflow.com/a/的可能重复11058934/300292 .简单的答案:你不能. 照片"应用程序是您可以删除资产的唯一位置.这可能是一件好事-您不希望任何恶意的应用程序都能够删除所有照片,对吗?
Possible duplication of https://stackoverflow.com/a/11058934/300292. Simple answer: you can't. The Photos app is the only place you can delete assets. Which is probably a good thing--you wouldn't want any willy-nilly app to be able to delete all your photos, would you?
这篇关于在IOS中从iPhone删除资产(图片或视频)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!