In the code below, I download image URLs from a text file, store it in a NSMutableArray, then download the images from from those URLS in CellforItemAtIndexPath. However, when I
I see that you have already answered this question, but still want to share my experience.
I had the same problem.
In my case, the reason of this problem was the following function: collectionView.dequeueReusableCell(...).
The type of cells was the same in every case, but data was different:
When image was nil I was not setting an image to the imageView. In such case collection view reuses an image of of other cell (Wrong image for a current cell).
Solution is very simple: Just set nil, if imageView does not contain an image.
Hope this will help you.