MKMapView using a lot of memory each time i load its view MKMapView using a lot of memory each time i load its view xcode xcode

MKMapView using a lot of memory each time i load its view


This is not Swift issue, is coming from Objective-C days. The possible ways to handle this issue is depending upon the situation and behavior of the app.

  1. If you're using a Map for multiple times (or places), only create a single (shared) instance of it. Which you can use it whenever you want.

  2. Or If you're only using it for once, then try a solution from here, https://stackoverflow.com/a/25419783/1603234. This may help. Reduce little. But not all.