MKMapview内存问题。缩放滚动

发布于 2024-09-14 11:14:51 字数 287 浏览 1 评论 0原文

我正在开发一个地图视图应用程序。当我查看仪器时,我发现我的应用程序没有泄漏,这很好。但我的问题是每当用户滚动、放大、缩小地图时,默认地图视图开始分配 MB 内存。当我的应用程序达到大约 25-30 mb,然后映射释放一些大约 5-6 mb 的数据。但是仍然分配了大约 25mb 的内存。过了一会儿,我的应用程序开始抛出内存警告。

其原因是 Mapview 将访问过的地点存储在其内存中,因此在我的应用程序中 我想知道是否有办法限制mapview的内存分配或使其在25mb-30mb之前释放一些数据。

感谢您的支持。我真的很感激。

I am developing a mapview application.When i look to instruments i see no leak in my application which is good.But my problem is whenever user scrolls,zooms in,zooms out the map,default mapview starts to allocate memories of MBs.When my application reaches about 25-30 mb then map releases some data which is about 5-6 mb s.But about 25mb of memory is still allocated.After a while my applications starts to throw memory warning.

The reason for it is that mapview stores the visited places in its memory and so in my application
I want to know if there is a way to limit memory allocation of mapview or make it release some data before 25mb-30mb.

Thanks for your support.I would really be preciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文