How to prevent UITableView from reuse custom cells Swift

前端 未结 4 1965
醉梦人生
醉梦人生 2021-01-02 05:43

In my App I use UITableView with custom cells.

for each cell I implement function to create it, and call these functions in cellFo

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-02 05:54

    Don't use the default UITableView and fight the reuse of cells, it's really embedded in it's behaviour.

    Try to adapt your code so it works well with reusing cells, or if that's really impossible, you'd have to write your own custom table view I guess (but I don't recommend that at all)

提交回复
热议问题