uitableviewcell + sdwebimage выглядит размыто - PullRequest
1 голос
/ 18 октября 2011

Я экспериментирую с sdwebimage для загрузки изображений, а приложение показывает загруженные изображения в моей пользовательской ячейке.

Когда приложение открыто и sdwebimage завершает свою задачу, изображения выглядят как размытые: enter image description here

затем я прокручиваю вверх и отпускаю, это выглядит так, как должно быть: enter image description here

Размер загруженных изображений и 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;
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...