Page 1 of 1
how do you reference an image from the iPhone Photo Album?
Posted: Mon Jul 25, 2011 6:17 am
by minx
Hello,
I'm creating an app where use picks several images from their iPhone Photo album and displays them in a selected card in the stack. While I'm able to select and display the images, I can't figure out how to reference and/or store the current image selection for later use. Can someone either point me to an example or command of how to do this?
Thanks!
Re: how do you reference an image from the iPhone Photo Album?
Posted: Mon Jul 25, 2011 7:06 am
by Jellicle
The iOS release notes say that once a user selects an image from the image library: "...a new image object will be created on the current card of the default stack containing the chosen image." So you could refer to the just created image with:
Code: Select all
put the id of image (the number of images) into ImageID
Once you have the id you can store it in a list or whatever
Gerry
Re: how do you reference an image from the iPhone Photo Album?
Posted: Mon Jul 25, 2011 7:20 pm
by minx
Thanks Gerry, I'll give it a try!
Re: how do you reference an image from the iPhone Photo Album?
Posted: Tue Jul 26, 2011 2:40 am
by ctceismc
So how exactly would go about displaying the image from the photo library once you get the ID as you suggested?
Re: how do you reference an image from the iPhone Photo Album?
Posted: Tue Jul 26, 2011 10:35 am
by Klaus
After issuing a "iPhonePickPhoto..." the image is already VISIBLE on the current card and can be addressed by "last image"!
Re: how do you reference an image from the iPhone Photo Album?
Posted: Tue Jul 26, 2011 1:01 pm
by Jellicle
ctceismc wrote:So how exactly would go about displaying the image from the photo library once you get the ID as you suggested?
Just read my previous post - it explains everything
Gerry