Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GKTurnBasedParticipant information

Is there any way of retrieving the player's name from a GKTurnBasedParticipant object? It appears that there is no way of displaying relevant information about the game player apart from an ugly playerID according to the class reference. Or am I missing something?

Thanks...

like image 298
Adam Waite Avatar asked Apr 16 '12 10:04

Adam Waite


1 Answers

Use loadPlayersForIdentifiers:withCompletionHandler: class method of GKPlayer. You pass an array of player ids as NSString and get an array of full GKPlayer objects. Read GKPlayer Class Reference for more information.

like image 181
Adam Avatar answered Sep 21 '22 11:09

Adam