获取每张专辑的所有相册和缩略图列表 [英] Get list of all photo albums and thumbnails for each album

查看:104
本文介绍了获取每张专辑的所有相册和缩略图列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取iOS中所有相册的列表?我知道图像选择器必须有一个列表,因为它将它们全部显示给用户。一旦我有了相册,我将如何显示特定相册中所有图像的缩略图?我似乎无法在文档中找到任何内容,但我确信必须有一种方法可以做到。

How do I get a list of all the photo albums in iOS? I know the image picker has to have a list of them somewhere since it displays them all to the user. Once I have the photo albums, how would I go about displaying thumbnails of all the images in a particular album? I can't seem to find anything in the docs, but I'm sure there's got to be a way to do it.

推荐答案

你不能从 UIImagePickerController 那里得到那种信息,如果这就是你要问的。

You can't get that kind of information from UIImagePickerController if that is what you are asking.

Take查看 AssetsLibrary 框架。甚至有示例代码实现自定义图像选择器。

Take a look at AssetsLibrary framework. There is even sample code that implements a custom image picker.

这篇关于获取每张专辑的所有相册和缩略图列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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