I'm stuck with a little problem:
Player *player1;
Player *player2;
Player *player3;
Player *player4;
Inside Player class, I have a variable called, score. If I need to change all players score, I use this function:
for (int i = 1; i <= 4; i++)
{
[self setValue:@"10,000" forKeyPath: [NSString stringWithFormat: @"player%i.score.text", i]];
}
Also in the Player class, I have a method called changeScorePosition. I would like to call this method for all "Players" in the game. How do I do this?