1

gkpeerpicercontroller を使用して iphone で 2 つ以上のオンライン ピアを接続する方法を教えてください。

を使用して接続しようとしました picker.connectionTypesMask =GKPeerPickerConnectionTypeOnline | GKPeerPickerConnectionTypeNearby;

しかし、2台の電話アイコンを選択すると、wifi接続が検索されます。しかし、ネットアイコンを選択しても、オンラインでゲームをプレイする準備ができているピアを選択する方法は何も起こりません。

前もって感謝します

4

1 に答える 1

0

You can't with GKPeekerController, you must implement the connection and if you want show a custom alert view

curSes = [[GKSession alloc] initWithSessionID:@"XXX" displayName:nil sessionMode:GKSessionModePeer];
curSes.available = YES;
curSes.delegate = self;
curSes.disconnectTimeout = 1;
[curSes setDataReceiveHandler: self withContext:nil];
于 2012-06-07T14:49:14.683 に答える