Ios 滚动时更改UITableViewCell中的数据

Ios 滚动时更改UITableViewCell中的数据,ios,objective-c,uitableview,Ios,Objective C,Uitableview,UITableviewcell中标签的值在滚动时发生变化。我在网上查看了一些答案。但我找不到答案。这是我的代码 -(void)configureCell:(ScoreViewCell *)cell atIndexPath:(NSIndexPath *)indexPath{ Player *player = [self.players objectAtIndex:indexPath.row]; cell.nameLabel.text = player.playerName;

UITableviewcell中标签的值在滚动时发生变化。我在网上查看了一些答案。但我找不到答案。这是我的代码

 -(void)configureCell:(ScoreViewCell *)cell atIndexPath:(NSIndexPath *)indexPath{
    Player *player = [self.players objectAtIndex:indexPath.row];
    cell.nameLabel.text = player.playerName;
    cell.totalScoreLabel.text = [NSString stringWithFormat:@"%@",player.currentScore];
    [cell.enterScoreField setTag:indexPath.row];
}



-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{

    static NSString *cellIdentifier = @"addScoreCell";
    ScoreViewCell *cell = (ScoreViewCell *)[tableView dequeueReusableCellWithIdentifier:cellIdentifier];

    if ((cell == nil) ||  (![cell isKindOfClass: [ScoreViewCell class]])) {

        cell = [[ScoreViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier]; 
    }

    [self configureCell:cell atIndexPath:indexPath];
    return cell;
}

检查代码中如何设置
currentScroe
。检查它是否在其他地方被修改。我怀疑玩家对象本身的当前分数是0

您调用的
configureCell
的其他位置有哪些?您是否在其他地方修改self.players?@A-Live仅限于目前here@ShantiK不,我不会在任何地方修改它else@Sekhar.. 滚动时两个标签都会改变吗?