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

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -