如何使用UIimagePickercontroller从本地文件夹中获取图像

时间:2010-09-06 05:45:15

标签: iphone

嗨,我是iphone的新手。我需要的是我必须将图像列表显示为网格,因为我找到了UIimagePickerController。但是有一些教程可以从UIImagePickerController获取图库和相册的图像。但是我需要从包含图像的本地文件夹(意味着项目中的文件夹)获取的图像,并使用UIImagePickerController将它们显示为网格我该怎么做。请帮助我。提前致谢。

2 个答案:

答案 0 :(得分:0)

您无法使用UIimagePickerController执行此操作。您必须实现自己的类网格表视图。

答案 1 :(得分:0)

UIImagePicker只为您提供are stored in Photos

的图像

wont be getting存储在local folder in UIImagePicker中的图片。

所以你有两个选择

1. Save the images in Photos instead of your local folder
2. Create a grid like table view (as told by @beefon).

快乐的编码......