uitableviewcell+;sdwebimage看起来很模糊

uitableviewcell+;sdwebimage看起来很模糊,uitableview,uiimageview,Uitableview,Uiimageview,我正在试用sdwebimage来下载图像,应用程序会在我的自定义单元格中显示下载的图像 当应用程序打开且sdwebimage完成其任务时,图像看起来很模糊: 然后我向上滚动并释放它,它看起来很不错,正如它应该的那样: 下载的图像和自定义单元格中的uiimageview均为40x40。 我的cellForRowAtIndexPath方法是这样的,有人能给出吗 处理这个问题的建议 - (UITableViewCell *)tableView:(UITableView *)tableView cell

我正在试用sdwebimage来下载图像,应用程序会在我的自定义单元格中显示下载的图像

当应用程序打开且sdwebimage完成其任务时,图像看起来很模糊:

然后我向上滚动并释放它,它看起来很不错,正如它应该的那样:

下载的图像和自定义单元格中的uiimageview均为40x40。 我的cellForRowAtIndexPath方法是这样的,有人能给出吗 处理这个问题的建议

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath (NSIndexPath *)indexPath
{

static NSString *CellIdentifier = @"promotionCell";

PromotionCell *cell = (PromotionCell *)[self.tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
    [[NSBundle mainBundle] loadNibNamed:@"PromotionCell" owner:self options:nil];
    cell = promotionCell;
    self.promotionCell = nil;

    cell.selectionStyle = UITableViewCellSelectionStyleNone;
}

// Get the event corresponding to the current index path and configure the table view cell.

cell.promotiontitle.text = [[promotionArray objectAtIndex:indexPath.row] title];
cell.promotionstore.text = [[promotionArray objectAtIndex:indexPath.row] store];
// cell.promotionimage => uiimageview
[cell.promotionimage setImageWithURL:[[promotionArray objectAtIndex:indexPath.row] mobileimage_low] placeholderImage:[UIImage imageNamed:@"placeholder.png"]];
return cell;
}

我注意到我的占位符图像,实际上比从互联网下载的要大,然后我认为imageview调整占位符图像的大小以适应他们的视图,然后这种调整大小的行为在sdwebimage出现后仍然保持。我希望这将帮助那些处理同样问题的人。