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?
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?
Can you tell me how to solve it? I also encountered this problem