从photolibrary访问特定相册中的照片 [英] Accessing photos from a specific album from photolibrary

查看:99
本文介绍了从photolibrary访问特定相册中的照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用uiimagepicker时,是否有任何方法可以指定哪些用户创建的相册应该从中挑选图像?Ill explain.Suppose用户在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.

这篇关于从photolibrary访问特定相册中的照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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