Maybe works correctly now?

This commit is contained in:
opa334 2024-01-12 21:03:05 +01:00
parent b6579c6a09
commit 373c0c6add
1 changed files with 2 additions and 2 deletions

View File

@ -379,9 +379,9 @@ UIImage* imageWithSize(UIImage* image, CGSize size)
_cachedIcons[appId] = iconImage; _cachedIcons[appId] = iconImage;
dispatch_async(dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
NSIndexPath *curIndexPath = [NSIndexPath indexPathForRow:[_cachedAppInfos indexOfObject:appInfo] inSection:0]; 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.imageView.image = iconImage;
[curCell setNeedsLayout]; [curCell setNeedsLayout];
} }