AnsweredAssumed Answered

How do I force unload of an ArcGIS mapview?

Question asked by armandzwan on May 22, 2017
Latest reply on May 22, 2017 by armandzwan

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; = nil;
self.dataSource = nil;


But it does not seem to help. How to I properly break down a MapView?