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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -