Solved! Go to Solution.
I have determined that adding an empty AGSGraphicsLayer to the map has what appears to be an oddly high memory cost. To be clear, the memory cost is incurred when the layer is added to the map, not when it is created.
...I'd be curious to know if you're seeing similar results on other devices (maybe a retina iphone or a non-retina iPad ?), or if the problem is either specific or exaggerated on the iPad 3. The reason I ask is because iPad 3 has a many more pixels (2048 x 1536 = 3.1 million) than other iOS devices.
I was able to reproduce the behavior you described. We're looking into the cause of the issue, but I fear there might not be an easy fix. We may have to make deep rooted changes to our display pipeline to better cope with the large number of pixels on iPad retina devices.
Maybe you can try further reducing the number of graphics layers in your app? You said you used one layer exclusively for showing selected symbols. The graphics layer now has a highlight color and a selection symbol that you can use to either display a halo around the selected graphic, or change it's symbol entirely.
If you want to discuss more options, you can drop me an email at d g o y a l AT e s r i dot c o m
Should I start a new thread with the same issue because this thread doesnot provide any answer. The esri arcgis ios app doesnot give memory spikes no matter how many layers you add on to it. therefore there must be another work around to this issue not just saying that this is a fault of arcgis is a suitable answer to the question.