Actually we only want the RefreshCached flag for the 1st image (the HTTP Auth one)

This commit is contained in:
Bogdan Poplauschi 2016-09-02 20:17:53 +03:00
parent 20760d71e5
commit dea7b4594d
1 changed files with 2 additions and 1 deletions

View File

@ -91,7 +91,8 @@
cell.textLabel.text = [NSString stringWithFormat:@"Image #%ld", (long)indexPath.row];
cell.imageView.contentMode = UIViewContentModeScaleAspectFill;
[cell.imageView sd_setImageWithURL:[NSURL URLWithString:[_objects objectAtIndex:indexPath.row]]
placeholderImage:[UIImage imageNamed:@"placeholder"] options:SDWebImageRefreshCached];
placeholderImage:[UIImage imageNamed:@"placeholder"] options:indexPath.row == 0 ? SDWebImageRefreshCached : 0];
return cell;
}