UITableView Custom Cells Disappearing content after Scrolling

前端 未结 10 1151
滥情空心
滥情空心 2020-12-17 00:12

I have seen this being asked here many times but none of the solutions worked for me. Here is my code snippet:

- (UITableViewCell *)tableView:(UITableView *)         


        
10条回答
  •  庸人自扰
    2020-12-17 00:41

    I know this question already has an answer, but just for googlers:

    In my case the problem was that the views were still in the UITableViewCell but after scrolling due to a mistake in the frame property of the views, they went under the next UITableViewCell and I could not see them.

    I think as the accepted answer has clearly said that :

    The problem went away when either:

    • The table view contains many cells (10+),

    • Each cell has a height of more than 50.

    he had similar problem to mine.

提交回复
热议问题