I have been creating a peer to peer connection for a new game, that does not use the peer picker. I am however dumbstruck as what to put in here:
- (void)session:(GKSession *)session didReceiveConnectionRequestFromPeer:(NSString *)peerID {
NSLog(@"I GOTS A CONNECTION REQUEST");
if(connected == YES) {
//deny all requests
}
else if(connected == NO) {
[session acceptConnectionFromPeer:peerID error:???];
}
}
What should I put where the question marks are? The documentation says NSError **.
It’s a pointer to an NSError*, so :