如何解决在iOS 6上的地图的内存问题 [英] How to resolve the memory issue with Map on iOS 6

查看:365
本文介绍了如何解决在iOS 6上的地图的内存问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iOS 6上创建了一个应用程序,其中显示了地图。问题是在与地图的简单交互中,即在捏合和平移和拖动操作上,存储器分配的高度增加。我认为在iOS 6中的Mapkit可能有一些增强,我不知道,所以我试过

  • MKMapView记忆体用量稳步增加

  • MKMapView的内存使用率非常高


  • 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.

    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

    这篇关于如何解决在iOS 6上的地图的内存问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆