ALAssetsLibrary 删除 ALAssetsGroup/ALAsset [英] ALAssetsLibrary delete ALAssetsGroup / ALAsset

查看:23
本文介绍了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".

有没有办法以编程方式删除我的 ALAssetsGroup 和 ALAsset.(属性可编辑"假设为 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,我会在 https://feedbackassistant.apple.com 上填写功能请求/.

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 https://feedbackassistant.apple.com/.

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆