When loading my UICollectionView
cells I call a method which downloads an image async.
During the download however, my collection view is reloaded and so when the async image is downloaded it is set in two different cells.
I have also tried using an NSOperationQueue
where in dealloc
I call cancelAllOperations:
, but this didn't work.
What is the best way to cancel this download and can someone provide some sample code?
Thanks.