I am developing an app, which needs to use images that have a resolution higher then (2000 x 2000) for text clarity purposes.
I have a Background image, over which I need to show Overlay Images with the same resolution. The number of overlays are variable, from 2 to 30.
As loading the Image with UIImage, it takes 4 Bytes for every pixel, so if one image has resolution 3000x3000, it will take up-to 34 MB of memory, 15 MB for 2000 x 2000.
Thats where the problem rises, the app crashes after loading 4-5 images on 3GS, and 11-13 images on iPhone 4.
The Overlays need to be placed exactly over the background image. They are just like what we have in Google Maps traffic Overlays. This doesn't rule out tiling, but makes the task relatively complex.
How should I handle this problem?