AsyncImageView icon indicating copy to clipboard operation
AsyncImageView copied to clipboard

ImageView show another image

Open deckyfx opened this issue 10 years ago • 6 comments

Hi

I create tableview with AsyncImageView (AIV) element in each cell, when i scroll the table, the AIV will somehow show image from other AIV's cell which already fully / partially loaded instead of load indicator, Sure it will return to its original assigned image after fully loaded, but before that, it will cause weirdness..

is this a bug?

deckyfx avatar Jun 16 '14 09:06 deckyfx

+1

s avatar Aug 03 '14 21:08 s

#13

maulikpat avatar Aug 21 '14 08:08 maulikpat

+1

mayqiyue avatar Feb 08 '15 11:02 mayqiyue

You need to set the image url to nil before setting the new url, because otherwise the recycled cell may still be loading an image from the previous time it was used.

nicklockwood avatar Feb 08 '15 12:02 nicklockwood

Thank you! I will have a try!

2015-02-08 20:33 GMT+08:00 Nick Lockwood [email protected]:

You need to set the image url to nil before setting the new url, because otherwise the recycled cell may still be loading an image from the previous time it was used.

— Reply to this email directly or view it on GitHub https://github.com/nicklockwood/AsyncImageView/issues/50#issuecomment-73408935 .

mayqiyue avatar Feb 11 '15 07:02 mayqiyue

What worked for me is setting the cross fade duration to 0.0. There was no other way of getting rid of the flickering when scrolling in my collection view. I tried canceling the loading and setting the imageURL to nil, but nothing helped. Well, no nice fade animations anymore, but the flickering is gone.

Baschdi avatar Mar 28 '15 09:03 Baschdi