ALAssetsLibrary删除ALAssetsGroup

ALAssetsLibrary删除ALAssetsGroup

本文介绍了ALAssetsLibrary删除ALAssetsGroup / ALAsset的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用IOS AssetsLibrary从我的应用程序创建了照片专辑。

I have created "photos album" from my App, using IOS AssetsLibrary.

阅读ALAssetsLibrary,ALAssetsGroup和ALAsset文档,我看过addAsset的方法, addAssetsGroupAlbumWithName。

Reading ALAssetsLibrary,ALAssetsGroup and ALAsset documentations, i have seen methods to "addAsset","addAssetsGroupAlbumWithName".

有没有办法删除 PROGRAMMATICALLY 我的ALAssetsGroup和ALAsset。
(属性'editable'假设为TRUE,因为我创建了这个数据)。

Is there a way to delete PROGRAMMATICALLY my ALAssetsGroup and ALAsset.(the property 'editable' suppose to be TRUE because i create this data).

推荐答案

这是不可能的使用任何记录的API。只有照片应用才能删除相册。如果您希望将此功能添加到iOS,我会在。

This is not possible using any documented API. Only the photos app can delete Albums. If you want this feature to be added to iOS, I would fill a feature request at http://radar.apple.com.

这篇关于ALAssetsLibrary删除ALAssetsGroup / ALAsset的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-04 21:45