如何解决在iOS 6上的地图的内存问题 [英] How to resolve the memory issue with Map on iOS 6
问题描述
我在iOS 6上创建了一个应用程序,其中显示了地图。问题是在与地图的简单交互中,即在捏合和平移和拖动操作上,存储器分配的高度增加。我认为在iOS 6中的Mapkit可能有一些增强,我不知道,所以我试过
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!
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.
- Guide to acceptable "Live Bytes" of iOS6 app using MKMapView
- MKMapView memory usage steadily increasing
- Memory usage of MKMapView is very high
这篇关于如何解决在iOS 6上的地图的内存问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!