iphone - GameKit Device Identification -
in ios gamekit framework, code identify names of devices connected together?
with gksession can peers specified state name.
//get connected peers nsarray *peerids = [gksession peerswithconnectionstate: gkpeerstateconnected]; for(nsstring *peerid in peerids) { //log peer name nslog(@"%@", [gksession displaynameforpeer:peerid]); }
Comments
Post a Comment