How do I get a thumbnail or saveable path from UIImagePickerController to use for a UIImageView?
Posted
by
viperacr99
on Stack Overflow
See other posts from Stack Overflow
or by viperacr99
Published on 2011-01-11T21:49:19Z
Indexed on
2011/01/11
21:53 UTC
Read the original article
Hit count: 123
Could somebody please explain or show some sample code of how I can use get a thumbnail to be put into a UIImageView after the user selects a photo with UIImagePickerController?
Let's say I want to set a thumbnail as the image of a table view cell. When the user presses the cell, the image picker is shown and the user selects an image that is already on their device. I also want to save the path to that thumbnail so that the next time the view is displayed, the proper thumbnail can be shown.
I am able to display an image picker and my delegate get's the chosen image correctly, but I want the path to the thumbnail, and I want to load the thumbnail using that path (i.e. I want to save the path). I've searched for hours today and haven't figured this out. Perhaps I'm not understanding ALAsset, or maybe it is something else, but I can't find any examples that are helping me. I have never used the image picker or ALAsset before now, so I'm completely new at this.
© Stack Overflow or respective owner