使用应用程序访问iPhone中用户相册的所有照片 [英] Access all the photos of user album in iphone using application

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

问题描述

我正在开发一个应用程序,在该应用程序中需要显示用户选择的相册的幻灯片放映, UIImagePickerController仅返回选定的图像.我想要所选图像的所有上一个和下一个图像,是否可以使用UIImagePickerController,如果没有,我可以执行任何其他操作. 提前致谢, 沙爹

I am working on one application in which i need to show slide show of the user selected photo album, UIImagePickerController only returns the selected image. I want all previous and next images of the selected image, is it possible with UIImagePickerController and if not is there any other way that i can do it. Thanks in advance, Satish

推荐答案

您必须创建一个自定义选择器来选择相册而不是图像.您将要使用ALAssetLibrary通过enumerateGroupsWithTypes:usingBlock:failureBlock获取相册列表,然后在组调用enumerateAssetsUsingBlock:获取单个图像.

You'll have to create a custom picker to select an album instead of an image. You'll want to use ALAssetLibrary to get a list of albums via enumerateGroupsWithTypes:usingBlock:failureBlock and then on the group call enumerateAssetsUsingBlock: to get the individual images.

这篇关于使用应用程序访问iPhone中用户相册的所有照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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