I am trying to use an array of UIImages to display large number of images on the screen. Currently I add each image into NSMutableArray and then access them when I need to, but as the number of images go up, the app eventually crashes.
I've tried using Instruments to figure out memory allocation, and it seems the app crashes once the memory reaches around 20MB. Is there a way to get around this? Or any way to conserve memory as much as possible when I'm doing this? Even if you don't have the answer for this, has anyone experienced the similar problem? And if so, how did you compromise/resolve?
By the way, I didn't think of storing to and retrieving from file (or core data) an option, because the app requires quick use of the images, and I had the impression that writing/reading core data or file on iOS was slow compared to when using memory (Please correct me if I am wrong)