iOS-boilerplate
iOS-boilerplate copied to clipboard
Async Cell Images not displaying correctly
I have increased the size of the results coming from the Twitter search example in AsyncCellImagesExample.m by changing the code as below
NSArray *keys = [NSArray arrayWithObjects:@"q", @"rpp", nil]; NSArray *objects = [NSArray arrayWithObjects:@"iOS", @"100", nil]; NSDictionary *params = [NSDictionary dictionaryWithObjects:objects forKeys:keys];
And when I run the code on my iPhone, if you scroll directly to the bottom of the table view, very fast, the images start showing some previously fetched and rendered versions, and then they quickly go back to normal. It is like there is some flickering, showing incorrect images.
I reproduce this too.
IMO the issue come from the cell reusing, but even if I clear the graphics context in the prepareForReuse method, the problem still persist. The best way to reproduce this issue is by disabling the WiFi/3G network of the device. I reproduce this each time i'm using a low bandwidth connection (like Edge).
Any help around here? Thanks!
Dev,
How we can avoid this flickering issue ? It's very annoying. I have more than 1000 friend list in a UITableView. So if I scroll down its flickering with previous image almost 20+ times.