ios - playerID is deprecated, Objective C -
what replaces player id?
- (void)lookupplayers { nslog(@"looking %d players...", match.players.count); [gkplayer loadplayersforidentifiers:match.players withcompletionhandler:^(nsarray *players, nserror *error) { if (error != nil) { nslog(@"error retrieving player info: %@", error.localizeddescription); matchstarted = no; [delegate matchended]; } else { // populate players dict self.playersdict = [nsmutabledictionary dictionarywithcapacity:players.count]; (gkplayer *player in players) { nslog(@"found player: %@", player.alias); [playersdict setobject:player forkey:player.playerid]; } // notify delegate match can begin matchstarted = yes; [delegate matchstarted]; } }]; }
Comments
Post a Comment