November 2013
Intermediate to advanced
576 pages
19h 3m
English
There are times when you might want to connect using Game Kit but without displaying the Peer Picker. Although this is a slightly more difficult approach, it is still entirely possible. First, you need to create a new session, as shown in the following example:
currentSession = [[GKSession alloc] initWithSessionID:nil displayName:nil sessionMode:GKSessionModePeer];currentSession.delegate = self;currentSession.available = YES;currentSession.disconnectTimeout = 15;[currentSession setDataReceiveHandler:self withContext:nil];
There are some key differences in the preceding example from implementing a connection using the Peer Picker. First, you need to create the GKSession instead of ...
Read now
Unlock full access