MKMapview memory issue. Scroll offset

I am developing a mapview application. When I look at tools, I do not see a leak in my application, which is a good one. But my problem is that every time the user scrolls, scales, scales the map, by default mapview starts to highlight memories of MB. When my application reaches about 25-30 mb, then the card releases some data, which is about 5-6 mb. But about 25 MB of memory is still allocated. After some time, my applications begin to issue a warning about memory.

The reason for this is that mapview stores the places visited in its memory, and therefore in my application I want to know if there is a way to limit the allocation of mapview memory or make it free some data to 25mb-30mb.

Thanks for your support. I really would be despised.

+3
source share

Source: https://habr.com/ru/post/1759845/


All Articles