Hello everyone!
I would like to connect to iPhone via GameKit but without using GKPeerPickerController. I want to show in a tableView the peers who want to connect (or are already connected) to the session and then select the chosen ones to do something. The same that GKPeerPickerController implements but doing it in a TableView myself. At the beginning I only want the name of the peers available for connecting.
The steps I follow below;
1-Create the session
GKSession *currentSession=[[GKSession alloc] initWithSessionID
"test" displayName
"XXX" sessionMode:GKSessionModePeer];
2-Get available peers
[currentSession peersWithConnectionState:GKPeerStateAvailable];
No result...
Any idea?
Thank you
I would like to connect to iPhone via GameKit but without using GKPeerPickerController. I want to show in a tableView the peers who want to connect (or are already connected) to the session and then select the chosen ones to do something. The same that GKPeerPickerController implements but doing it in a TableView myself. At the beginning I only want the name of the peers available for connecting.
The steps I follow below;
1-Create the session
GKSession *currentSession=[[GKSession alloc] initWithSessionID
2-Get available peers
[currentSession peersWithConnectionState:GKPeerStateAvailable];
No result...
Any idea?
Thank you