How to resolve the memory issue with Map on iOS 6

我们两清 提交于 2019-12-21 10:42:30

问题


I have created an app on iOS 6 in which I am showing the Map. The problem is there is a highly increase in memory allocation in just a simple interaction with the map i.e., on Pinch and Pan and dragging operations. I thought there may be some enhancements in the Mapkit in iOS 6 which I don't know so I tried the Sample Code of Raywenderlich but still I am facing the same issue. Please take a look on the image I have attached. I just dragged the map for sometime and there is an allocation of 55MB. I have tested this on Simulator but on the Device, app crashes very soon. Please provide some help in any way in this regard!


回答1:


From what it appears, this issue seem to only affect iOS 6 maps when dragging and zooming. There have been various hot fixes that have been proposed to address this issue. However, it appears that this is a bug that will need to be addressed by Apple.

There have been solutions proposed in this question: iOS6 MKMapView using a ton of memory, to the point of crashing the app, anyone else notice this?

Edit: Some additional questions on stackoverflow claiming this issue.

  1. Guide to acceptable "Live Bytes" of iOS6 app using MKMapView
  2. MKMapView memory usage steadily increasing
  3. Memory usage of MKMapView is very high


来源:https://stackoverflow.com/questions/14280106/how-to-resolve-the-memory-issue-with-map-on-ios-6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!