我有一个自定义排行榜,我将 Game Center 个人资料图片加载到 32 高的 UITableCell 中。
当我将它显示的图像设置为大约 200x32 时会发生什么,然后快速调整大小为正方形。用户看到图像在正确显示之前失真的闪光。
这里发生了什么?我怎样才能解决这个问题?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
if ([GCCustomLeaderboard sharedInstance]->nearbyScores.count == 0){
return nil;
}
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MyBasicCell"];
GCLeaderboardScore *playerScore = [[GCCustomLeaderboard sharedInstance]->nearbyScores objectAtIndex:indexPath.row];
cell.textLabel.text = [NSString stringWithFormat:@"%@: (%d)", playerScore->alias, (int)playerScore->score];
cell.imageView.image = playerScore->photo;
return cell;
}