iOs high memory usage

家住魔仙堡 提交于 2019-12-13 05:45:13

问题


Now i 've got a project with ARC, which use over 6m memory on pushing chat ViweController(UItableview with custom cells). I have no idea about why it happening. The most interesting that i cant identify for what reason it needs too much memory. So this is my Instruments screenshot:

In more detail view it looks like:

I think libRip.A.dylib needs too much memory. Have you got any ideas about it?

And please explain me what is and strange libRip.A.dylib library?


回答1:


According to this that libRIP call is responsible for drawing a UIViewController with a background image.

EDIT:

Apparently this problem happens when you're setting a view's backgroundColor using [UIColor colorWithPatternImage:].

A way around it is to use a UIImageView as background instead. As described here.



来源:https://stackoverflow.com/questions/9703396/ios-high-memory-usage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!