nicklockwood / AsyncImageView

[DEPRECATED]
http://charcoaldesign.co.uk/source/cocoa#asyncimageview
Other
906 stars 186 forks source link

ImageView show another image #50

Open deckyfx opened 10 years ago

deckyfx commented 10 years ago

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?

s commented 10 years ago

+1

maulikpat commented 10 years ago

13

mayqiyue commented 9 years ago

+1

nicklockwood commented 9 years ago

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.

mayqiyue commented 9 years ago

Thank you! I will have a try!

2015-02-08 20:33 GMT+08:00 Nick Lockwood notifications@github.com:

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 .

Baschdi commented 9 years ago

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.