I want to unload an ArcGIS MapView when I receive a memory warning and the current selected tab of my tabBarController is not the MapView. I rebuild it when the view becomes visible again.
I tried:
[self removeAllOverlays]; // this is my own function for removing all
[self.arcGISMap.locationDisplay.dataSource stop];
self.arcGISMap.locationDisplay.locationChangedHandler = nil;
self.arcGISMap.touchDelegate = nil;
self.arcGISMap = nil;
self.map = nil;
self.dataSource = nil;
But it does not seem to help. How to I properly break down a MapView?
Try removing it from the view hierarchy
I can't do that. It is one of the main Tabs in my main TabBarController...