memory-management - 如何解决 iOS 6 上 Map 的内存问题

标签 memory-management ios6 crash mapkit

我在 iOS 6 上创建了一个应用程序,我在其中显示了 map 。问题是在与 map 的简单交互中,即在捏和平移以及拖动操作上,内存分配会大大增加。我认为 iOS 6 中的 Mapkit 可能有一些我不知道的增强功能,所以我尝试了 Sample Code of Raywenderlich但我仍然面临同样的问题。请看我附上的图片。我只是拖了一段时间 map ,分配了55MB。我已经在模拟器上对此进行了测试,但是在设备上,应用程序很快就会崩溃。请在这方面以任何方式提供一些帮助!

enter image description here

最佳答案

从表面上看,此问题似乎仅在拖动和缩放时影响 iOS 6 map 。已经提出了各种修补程序来解决这个问题。但是,这似乎是一个需要 Apple 解决的错误。

这个问题已经提出了解决方案:iOS6 MKMapView using a ton of memory, to the point of crashing the app, anyone else notice this?

编辑:
关于声称此问题的 stackoverflow 的一些其他问题。

  • Guide to acceptable "Live Bytes" of iOS6 app using MKMapView
  • MKMapView memory usage steadily increasing
  • Memory usage of MKMapView is very high
  • 关于memory-management - 如何解决 iOS 6 上 Map 的内存问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14280106/

    相关文章:

    c++ - 删除指针数组而不删除内存中的指向对象?

    Android Activity 堆积在后台导致 OutOfMemory 错误

    objective-c - 以下 GCD/ block 场景的推荐模式是什么?

    iphone - XCode:新 iOS 6 ABAddressBook 函数出现 Apple Mach-O 链接器错误

    memory-management - Julia 中的预分配

    ios6 - iOS6 地址簿中的 Facebook 社交个人资料

    ios - 在 UITableViewController 中使用 UISearchDisplayController 时断言失败

    c++ - Qt C++ : removing next-to-last item from QListWidget makes program crash

    android - 在 Android 2.2 中使用带有 Activity 的 fragment 时应用程序崩溃

    android-layout - Android应用程序在setOnItemSelectedListener上崩溃