6. GKPeerPickerController* picker = [[GKPeerPickerController alloc] init]; picker.delegate = self; picker.connectionTypesMask = GKPeerPickerConnectionTypeNearby; [picker show]; - (void)peerPickerController:didConnectPeer:toSession: 2011 2 21 7. session = [[GKSession alloc] initWithSessionID:SESSION_ID ! ! ! ! ! ! ! ! ! ! ! ! displayName:nil ! ! ! ! ! ! ! ! ! ! ! sessionMode:GKSessionModePeer]; ! !