Search code examples
iossdwebimage

iOS SDWebImage for UITableView?


This is my code,I have created a cusom UITableViewCell and uses SDWebImage to load image asynchronously. But it is not working. When I use default cell like this "cell.imageView setImage..." it works fine,I don't know why?

DiscoutCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
[cell.goodsImageView setImageWithURL:url placeholderImage:[UIImage imageNamed:@"zanwutupian.png"]];

Solution

  • Solved I find I don't link that imageView to my IBOutet imageview,I'm so sorry for wasting your time,it's my fault.I'm so careless!Anyway,thanks very much!