Images in UITableView keep re-loading and wrong images flash while scrolling

前端 未结 6 1229
醉酒成梦
醉酒成梦 2021-01-16 19:40

i have created a UITableView which populates each cell from URL requests. I have used \'dispatch_queue\' to prevent the UItableView from freezing. For some reason when i s

6条回答
  •  南笙
    南笙 (楼主)
    2021-01-16 20:30

    Above answer is correct. But no need to download image in cell for row. you can download image before table loading occurs in viewWillAppear or ViewDidLoad which fits to your requirement.

提交回复
热议问题