mirror of
				https://github.com/opa334/TrollStore.git
				synced 2025-11-04 07:32:36 +08:00 
			
		
		
		
	Maybe works correctly now?
This commit is contained in:
		
							parent
							
								
									b6579c6a09
								
							
						
					
					
						commit
						373c0c6add
					
				@ -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];
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user