iPhone using Camera causes array to be unloaded

Posted by Aaron Dale on Stack Overflow See other posts from Stack Overflow or by Aaron Dale
Published on 2010-06-11T20:09:58Z Indexed on 2010/06/11 20:12 UTC
Read the original article Hit count: 199

Filed under:
|

I have an array of images that I'm displaying in a UITableView. When choosing images from the library using the UIImagePicker, everything is totally fine and I can add a lot of images to the array. As soon as I add an image from the camera using the Picker I receive a memory warning and my array of images is ditched. Coming back from the camera picker, the table view is empty.

The UIImagePicker when using the camera as the source generates a memory warning before I have a chance to resize the image.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c