views:

87

answers:

2

So I've built a custom cell for a UITableView. My subclassed UITableViewCell has a UIImageView in it. When scrolling through the table view, as the new cells appear, the "left-over" images from the dequeued cells are shown for a moment until the new image loads in it's place.

I've tried [cell.myImage setImage:nil] but that doesn't seem to have any effect. How can I prevent this problem?

Note that I'm loading the images in another thread (they're coming off the web).

+1  A: 

I was able to setImage with a blank png. This prevent the old image from being displayed.

tuzzolotron
A: 

you can also set it to nil

thierryb