Attached is a sample, which is based on the CustomTiledLayerSample project.
It has 5 layers and it's crashing on iPhone 4S before these layers load. Tiles are loaded one by one and there is a 300ms delay before next tile is loaded. You don't have to zoom or pan, it will crash automatically. Attached is a screenshot of memory usage.
Instruments are displaying a lot of dirty memory, but I'm not sure how so many memory can be dirty when the map is not zooming or panning.
When I call refresh on a layer then the memory is released, so it looks like all that memory is for loaded images.
Do you have any ideas how to reduce the memory usage without removing layers?
Thanks.