Search code examples
iostableviewcell

I am loading image in table view cell asynchronously It's working perfectly fine but when i scroll down the image is flickering


I am loading image in table view cell asynchronously It's working perfectly fine but when i scroll down the image is flickering...

import "UIImageView+WebCache.h"

[cell.imgProfilePic sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",[arrSearchedPic objectAtIndex:indexPath.row]]] placeholderImage:[UIImage imageNamed:@"placeholder.png"] completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) { NSLog(@"download completed..."); }];

user this code as well still image flicker is there anything which i am missing please let me know

any help will be appreciable. Thank you


Solution

  • Use SDWebImage for load asynchronously image Use this link

    https://github.com/rs/SDWebImage