tags:

views:

1962

answers:

4

I'd like to randomly load images from the user's photo album, but I'd prefer not to have to access an image picker (i.e. I'd like to have the images be random background images). Does anyone know if this is possible?

(I couldn't find any references other than: UIImageWriteToSavedPhotosAlbum )

Edit: I'm trying to do this within an iPhone app. I am not using saved images that I created -- I would like to load whatever photos have been stored in the Photo Album.

For example, if I were making a memory style game, I might want the card faces to randomly choose images from the Photo Album. How might I go about that?

Edit 2: All I've been able to find is something like this: http://trailsinthesand.com/picking-images-with-the-iphone-sdk-uiimagepickercontroller/

I'd prefer not to use the UIImagePickerController, because I didn't want to have the user have to make a decision. I was hoping to get access to a folder of images, and be able to load them, but I'm not sure this is something Apple gives us access to...

+4  A: 

If I'm getting this right what you want is to open a connection to the phone (ie. ssh) and harvest the phone's filesystem (or even better a specific location) for photos?

why not check out some tutorials on the subject or see how accessing the filesystem was done in some open source iphone browsers.

Vuk
A: 

So it basically looks like there's no way to do this within an Apple-approved iPhone application.

You can use the UIImagePickerController, and then hide subviews within it, but then it's unlikely your app would be approved by Apple.

So, looks like we'll have to wait until functionality like this can be added...

Jeffrey Berthiaume
+1  A: 

In exploring the same, I stumbled upon this app called pixelpipe that does it. They do a nice job of showing all images in the iphone library. I am not sure how they do it, and how they got approval from apple.

Ramesh
+1  A: 

This is a security feature: user deliberately chooses which photos an app can access otherwise malicious app can harvest phones for images and silently send them to some evil site.

dimzzy
Are there any documents were this is officially stated? I believe you, just wonder, out of curiosity.
sris
No, just my guess.
dimzzy