iOS rename/delete albums of photos

梦想与她 提交于 2019-12-11 17:55:36

问题


I am able to add photos and create albums from my app but I also want to be able to rename/delete albums and pictures in these albums. I know Apple have restrictions but is it possible at least to manage the albums and photos created by my application? (ALAsset and ALAssetLibrary) I understand I can't do anything to the already existing albums and photos in the Camera row and I am ok with this.


回答1:


If you created an album, so that the album is editable, then the presence or absence of an asset in that album is up to you. But the name of the asset is not up to you, and basically you don't have the kind of access to the user's photo library that would permit fine-grained management of albums and their content. Only the user can do that (using the Photos app) - to the extent that even the Photos app permits it. That is why apps that do this sort of thing use internal "albums" to present the images. You can clump any images you like into your interface and show them to the user as an "album" of your own.



来源:https://stackoverflow.com/questions/22665229/ios-rename-delete-albums-of-photos

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