代码之家  ›  专栏  ›  技术社区  ›  Jackie

UITableView的iOS SDWebImage

  •  0
  • Jackie  · 技术社区  · 12 年前

    这是我的代码,我创建了一个cusom UITableViewCell,并使用SDWebImage异步加载图像。但它不起作用。当我使用像“cell.imageView setImage…”这样的默认单元格时,它工作得很好,我不知道为什么?

    DiscoutCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
    [cell.goodsImageView setImageWithURL:url placeholderImage:[UIImage imageNamed:@"zanwutupian.png"]];
    
    1 回复  |  直到 9 年前
        1
  •  0
  •   Jackie    12 年前

    解决了的 我发现我没有将该imageView链接到我的IBOutet imageView,很抱歉浪费了你的时间,这是我的错。我太粗心了!无论如何,非常感谢!