iOs高内存使用率

时间:2012-03-14 13:58:37

标签: ios memory-management instruments

现在我有了一个ARC项目,它在推送聊天ViweController(使用自定义单元格的UItableview)时使用了超过6米的内存。我不知道为什么会这样。最有趣的是我无法确定它需要太多内存的原因。所以这是我的仪器截图:

enter image description here

在更详细的视图中,它看起来像:

enter image description here

我认为libRip.A.dylib需要太多内存。你有什么想法吗?

请解释一下什么是奇怪的libRip.A.dylib库?

1 个答案:

答案 0 :(得分:5)

根据this,libRIP调用负责绘制带有背景图像的UIViewController。

修改

当您使用backgroundColor设置视图[UIColor colorWithPatternImage:]时,会发生此问题。

一种解决方法是使用UIImageView作为背景。如上所述here