diff --git a/TrollStore/TSAppTableViewController.m b/TrollStore/TSAppTableViewController.m index 63756b65..58948a74 100644 --- a/TrollStore/TSAppTableViewController.m +++ b/TrollStore/TSAppTableViewController.m @@ -379,9 +379,9 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N _cachedIcons[appId] = iconImage; dispatch_async(dispatch_get_main_queue(), ^{ NSIndexPath *curIndexPath = [NSIndexPath indexPathForRow:[_cachedAppInfos indexOfObject:appInfo] inSection:0]; - if([tableView.indexPathsForVisibleRows containsObject:curIndexPath]) + UITableViewCell *curCell = [tableView cellForRowAtIndexPath:curIndexPath]; + if(curCell) { - UITableViewCell *curCell = [tableView cellForRowAtIndexPath:curIndexPath]; curCell.imageView.image = iconImage; [curCell setNeedsLayout]; }