views:

426

answers:

2

The path for the thumbnails of the images located in the iPhone is: /private/var/mobile/Media/DCIM/100APPLE/.MISC/ (or instead of 100APPLE we have 101APPLE, 102APPLE etc).

If I want to pick these images directly from these folders, what is the best way to improvise a nice picker like the one for UIImagePickerControllerSourceTypePhotoLibrary?

I have already seen some attempts using UITableView and UIPickerView. Any other ideas?

Any recommended TUTORIAL?

A: 

I previously wrote "Your application runs in a sandbox. This means that directories like /private/var are not available to your application. It is therefore not possible to create a custom picker that looks directly in those folders."

This turns out not to be the case. I am totally surprised that iPhone applications do actually have access to most of the filesystem.

St3fan
Thanks Stefan.I am working with a clean device (not jailbroken) and I have used:NSArray *directoryContent = [[NSFileManager defaultManager] directoryContentsAtPath:ThumbPath];to display images in a Custom UIPickerViewlike(using a loop with [directoryContent count]): uiView.image = [UIImage imageWithContentsOfFile:ThumbPath];And that way I show and can indeed select images from that directory directly to the app. See the implementation of free apps: Flickd and Koredoko.The thing is that I wanted to create a neater interface to choose the pics. Does this make sense?
erastusnjuki
A: 

what is the best way?

I really don't know so ideas still welcome.

Any other ideas?

Yes. Using a thumbnail scrollview.

Any recommended TUTORIAL?

Not a tutorial but even better, sample code. Using sample code from Apple Developer: Autoscroll from ScrollViewSuite

erastusnjuki