每次导航都会不断增加内存使用量。(Memory using is increasing continuously with every navigation. and crash after 4

编程入门 行业动态 更新时间:2024-10-28 08:16:22
每次导航都会不断增加内存使用量。(Memory using is increasing continuously with every navigation. and crash after 4-5 minutes [closed])

在我的应用程序中,我有大约50个nib文件。我使用ARC on..means与自动引用计数..我使用导航控制器导航。所以x代码中的每个导航内存指示器是连续增加..和崩溃。 。内存管理的解决方案?

In my app,i have around 50 nib files.And i Used ARC on..means with automatic reference counting .. i used navigation controller for navigation.so With every navigation memory indicator in x-code is continuous increasing..and crash..any solution for memory management ?

最满意答案

您没有向我们提供足够的信息来诊断您的问题。 可能是泄漏(例如由强参考循环引起的泄漏,例如,重复使用重复计时器)。 可能被遗弃的内存(例如由导航中的某些循环逻辑引起)。 没有办法根据你迄今分享的内容进行诊断。

我建议你观看WWDC 2013视频, 修复内存泄漏 (针对注册开发人员)。 这基于WWDC 2012视频iOS App Performance:Memory ,您可能希望首先观看。 它们将引导您解决问题类别,并向您介绍使用Instruments诊断问题的一些技巧。

You have not provided us enough information to diagnose your problem. Could be leaks (such as that caused by strong reference cycles, e.g. sloppy use of repeating timers). Could be abandoned memory (such as caused by some circular logic in your navigation). No way to diagnose on the basis of what you've shared thus far.

I'd suggest you watch WWDC 2013 video, Fixing Memory Leaks (for registered developers). This builds upon the WWDC 2012 video iOS App Performance: Memory, which you might want to watch first. These walk you through the categories of problems and introduce you to some techniques for using Instruments to diagnose the problem.

更多推荐

本文发布于:2023-07-16 09:55:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1126794.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:都会   使用量   内存   Memory   crash

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!