Access all the photos of user album in iphone using application

纵饮孤独 提交于 2019-12-25 08:21:10

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/4002657/access-all-the-photos-of-user-album-in-iphone-using-application

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