在使用 uiimagepicker 时,有没有什么方法可以指定应该从哪个用户创建的相册中挑选图像?我来解释一下.假设 ipad 中有两个用户创建的相册.让他们命名为朋友"和学生"'.有没有办法指定照片应该从这些相册中的哪一个访问?或者我怎么知道所选择的图像所属的相册的名称?
While using uiimagepicker, is there any way of specifying which user created album the images should be picked from?Ill explain.Suppose there are two albums created by the user in the ipad.Let them be named 'friends' and 'students'.Is there any way of specifying which one of these albums the photos should be accessed from ?or How can i know the name of the album the picked image belongs to?
可以通过 alsset 方法完成吗?我想做的是使用他们的名字访问特定同步相册中的照片.甚至可能.我的意思是 iphone 使用自己的命名约定还是保留原始图像名称?
can it be done via alsset methods?What i want to do is access photos from a particular synched album using their names.Is it even possible.I mean does iphone use its own naming conventions or are the original image names retained?
您应该使用 ALAssetsLibrary 并制作自己的自定义选取器.您可以在 https://github.com/B-Sides/ELCImagePickerController<找到使用 ALAssetsLibrary 的自定义图像选择器/a>
You should use ALAssetsLibrary and make your own custom picker. You can find a custom image picker using ALAssetsLibrary at https://github.com/B-Sides/ELCImagePickerController
当用户从自定义选择器中选择图像时,您将返回 ALAsset 对象,您可以从中获取所需的图像、它所属的专辑等.您可以保存并修改自定义选择器以导航到选定的专辑.
When the user selects an image from the custom picker, you are returned with the ALAsset object from which you can get the required image, album it belongs to etc. You can save that and modify the custom picker to navigate to a selected album.
这篇关于从照片库访问特定相册中的照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!