ios - Instruments,增加iPhone应用程序的分配

标签 ios cocoa-touch memory-management instruments xcode-instruments

我正在使用 UIPageViewController 加载多个 View Controller 。当我在 Instruments 工具中运行我的应用程序时。我发现分配正在向高利润率移动。 虽然我正在释放并将类对象设为零。当我来回移动时,分配不断增加。我错过了什么?

请找截图enter image description here

最佳答案

关闭僵尸。默认情况下,Zombies 永远不会被删除,因此在 Instruments 中,您看到的只是内存使用量增加。请注意,条形都是纯蓝色,没有任何内容被删除。

关于ios - Instruments,增加iPhone应用程序的分配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13357677/

相关文章:

ios - 当前日期仅以 nsdate 格式显示 "mm/dd/yy "不会在 swift 中转换为 nsstring

ios - 在 iOS 14.8 上调用过期处理程序之前,BGProcessingTaskRequest 仅运行 295 秒

iphone - EXC_BAD_ACCESS 错误.. textfield resignFirstResponder

ios - 添加一个小视频剪辑作为背景

ios - 将值传递给下一个 viewController 不起作用

iphone - 当 UITextView 大小增加时如何增加 UITextView 字体大小

iphone - 为什么我无法通过 isKindOfClass 获取自定义类的正确类?

c++ - 如何增加 C++ 中相邻列表的最大大小?

c++ - 为什么运行时环境不能决定应用 delete 或 delete[] 而不是程序员?

iphone - 使用 NSMutableArrays 创建 NSDictionary 的内存管理