iphoneiosdidreceivememorywarningmemory-warning

Memory problems when working with images and camera on iphone


In my application users can add up to 8 images taken by the camera and upload them to the server one-by-one. My problem is that even when taking the first picture i get an memory warning, which of course forces the app to release any view not visible.

What is the best practice approach to handling pictures? How do I hold them until they're uploaded, without running out of memory?

My objective is to avoid any memory warnings.

Thanks in advance.

/Esben


Solution

  • After clicking images store images into Document directory. It is most safe option to store

    images and then use it. Find some tutorial and after click image send image to document

    directory and then fetch from directory and use it. Hope it helps you.