objective-c - iOS uitableview一直上下滑动 内存一直上涨这是为什么
怪我咯
怪我咯 2017-04-17 16:23:35
0
6
327

因为 一直上涨 如果不重启程序 程序玩久了 就会上下滑动有种恍惚感 越往后越卡 求解答 代码能私聊吗

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(6)
PHPzhong

Is there a problem with reusing cells?

巴扎黑

It is estimated that there is no reuse. Let’s study the reuse mechanism of uitableview

刘奇

You should post all the code related to this uitableView. .

洪涛

Have you added the line of code if (cell == nil)

大家讲道理

If the memory keeps skyrocketing, it usually means that it is stuck in an infinite loop, causing the memory to be occupied all the time and more and more.

The questioner mentioned that it is caused by sliding the tableView up and down, so there should be a problem with your Cell (reuse mechanism problem).

If this is not the problem,

Then does the subject's Cell perform some traversal operations? Is there a wrong judgment condition that leads to an infinite loop?

PHPzhong

Can you tell me how to solve it? I also encountered this problem

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!