开发者

How to read all images from iphone photo library into application and how i would i get path of photo library?

开发者 https://www.devze.com 2023-01-10 23:40 出处:网络
How to read all images from ipho开发者_如何学Cne photo library intoapplication and how i would i get path of photo library??To read all images from iPhone photo library, use the \"assets library frame

How to read all images from ipho开发者_如何学Cne photo library into application and how i would i get path of photo library??


To read all images from iPhone photo library, use the "assets library framework".

You can check out Apple's documentation here: http://developer.apple.com/library/ios/#documentation/AssetsLibrary/Reference/AssetsLibraryFramework/_index.html

There is a ALAssetsFilter called "allPhotos", you can use the filter with the setAssetsFilter: and the enumerateAssetsUsingBlock: methods in ALAssetsGroup to achieve this.

Here is some sample code implementing this: http://www.icodeblog.com/2010/07/08/asset-libraries-and-blocks-in-ios-4/

0

精彩评论

暂无评论...
验证码 换一张
取 消