开发者

How to iterate through all images in photos folder and load them into an NSMutable array?

Is it possible for me to put all the images in my photos folder into a NSMutableArray as UIImag开发者_开发知识库es? If so, how could I go about doing this?


Use the UIImagePickerController to get the images from the photos from the photos folder on the device. There are great associated sample projects from Apple which are easily found from a google search.

EDIT: If you need to grab more then just a user selected photo, you can use the ALAssetLibrary and Blocks. There are some similar posts here and here which point you in the right direction. I would also look at Block Programming Topics if you are new to Blocks, as this will help you grasp what is going on. Hope that helps!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜