Labels are lingering in my reusable table cells

后端 未结 3 833
半阙折子戏
半阙折子戏 2021-01-24 21:04

I have a table whose cells contain labels. Whenever I dequeue a reusable cell, the old labels are still lingering on it. I was able to remove them with this:

            


        
3条回答
  •  孤独总比滥情好
    2021-01-24 21:39

    Subclass UITableViewCell (if you aren't already). Override prepareForReuse and remove the labels there. Might work

提交回复
热议问题