I am developing an application that should use images with a resolution higher (2000 x 2000) for the purposes of clarity of text.
I have a background image over which I need to show Overlay Images with the same resolution. The number of variable overlays, from 2 to 30.
Like loading an image using UIImage, 4 bytes are required for each pixel, so if one image has a resolution of 3000x3000, it will take up to 34 MB of memory, 15 MB for 2000 x 2000.
That's where the problem grows, the application crashes after uploading 4-5 images to 3GS and 11-13 images to iPhone 4.
Overlays should be placed exactly above the background image. They are similar to what we have in the overlays of Google Maps Overlays. This does not preclude partitioning, but makes the task relatively difficult.
How do I solve this problem?
source
share