I am making an iOS application that uses SKMap (Skobbler). When opening SKMap, my application consumes a lot of memory. Moreover, it does not free memory when I go to another page of the application.
I put some code in the viewWillDisappear method to release SKMap memory,
[[SKRoutingService sharedInstance].mapView clearAllAnnotations]; [SKRoutingService sharedInstance].routingDelegate = nil; [SKRoutingService sharedInstance].navigationDelegate=nil; [[AudioService sharedInstance]cancel]; [[SKRoutingService sharedInstance]stopNavigation]; [[SKRoutingService sharedInstance]clearCurrentRoutes]; [[SKRoutingService sharedInstance]clearAllRoutesFromCache]; [SKRoutingService sharedInstance].mapView = nil;
If you have a decision to free memory for this, please help me.
source share