I want to know the real name of the local player, but GKLocalPlayer displayName returns "Me", not the real name.
The code I'm using is:
void (^completitionHandler)(NSArray *, NSError *) = ^(NSArray *players, NSError *error) {
for (GKPlayer *p in players) {
NSString *alies = p.alies;
NSString *name = p.displayName;
NSLog(@"name = %@",name);
}
}
Sinba source
share