iOS - Retain images in memory
I'm in the early stages of developing an iPad app with heavy, high res imagery for the retina display. While using the app, the performance is great. Once the user pauses for about 5-10 seconds, the app stutters for a second or two at the next interaction.
Using Instruments, I've tracked it down to what seems to be a memory issue. With all images loaded and animating smoothly, the app uses ~140MB of memory. After the user has paused, the memory usage drops to ~67MB. When the user interacts again, the stutter is apparent as it re-loads all of the same images back into memory and again sits at ~140MB.
While I can make some image optimizations to decrease the amount of memory used, is there any way to flag these images (which are part of a constant user interface) as important so that iOS doesn't purge them from memory?
