Gifu
Gifu copied to clipboard
UICollectionView cache image
My uicollectionview has a list of cells which contains images. When I scroll up and down, cells show duplicate images. I think it causes by cache. I tried to set imageview.image = nil before set imageview's image by url but it's not working. Please help!
What worked for me was doing
imageview.image = nil
imageview.prepareForReuse()
inside of the prepareForReuse