I've been testing my app and currently at peak points it consumes more than 450 mb of ram. The number is astoundingly big due to AppleMaps api. Simple zoom out eats around 150 mb of ram.
After browsing i've found out a tricky solution - which is reversing the Map types for a second (from standard to satellite to standard). The following snippet code helps me achieve that:
[mapView setMapType:MKMapTypeSatellite];
[mapView setMapType:MKMapTypeStandard];
The issue is - i want to apply a rule - if my app is using equal or more than 400 mb of ram - this trick should be performed. And so far i have no clue how to do that.
NB: Tried following the article "How to programmatically retrieve the RAM memory" advised by the admin, but couldnt get the code to work.
Any ideas greatly appreciated.
Thank you!