Can the memory used by MKMapView be released some how?

前端 未结 2 1129
忘掉有多难
忘掉有多难 2021-01-18 13:09

I am using an MKMapView in my iPhone application. When I load this view, the activity monitor instrument shows that the real memory of my App i

相关标签:
2条回答
  • 2021-01-18 13:43

    Is this on the simulator, or the actual device? Some parts of the simulator behave slightly differently to the actual device, and the simulator may not be clearing out the cache properly (since it doesn't have to given the amount of RAM on a Mac compared to an iOS device).

    Have you checked to see if you have a memory leak using Instruments? (again, you should do this on the actual device, since occasionally the simulator behaves slightly differently, and will show false positives/negatives when it comes to memory leaks)

    0 讨论(0)
  • 2021-01-18 13:44

    For what its worth, there are similar related questions here:

    • https://stackoverflow.com/questions/5935243/mkmapview-rame-et-fuite-memoire-apple
    • Is MKMapView leaky
    • MKMapView Memory Leak in iPhone Application
    0 讨论(0)
提交回复
热议问题