Reusable cell old image showing

后端 未结 6 837
醉话见心
醉话见心 2021-01-12 07:30

I am facing a problem when scrolling from top to bottom of my tableview. The reusable cell shows old image until new image download is completed.

It sh

6条回答
  •  梦谈多话
    2021-01-12 08:01

    You must place an image for every cellForRowAtIndexPath function, mean in your code you need to write else condition for image operation and in that you need to place an placeholder image. Because tableview cells are reused when you scroll up and down, so that if you won't place any new content it will keeps the old content, that's why it shows old/duplicate content.

提交回复
热议问题