authenticateWithCompletionHandler メソッドを呼び出して AGC を承認したら、[キャンセル] ボタンをクリックして UI を閉じます。その後、authenticateWithCompletionHandler を再度呼び出すと、今度は Game Kit がゲームによって提供されたブロック オブジェクトを呼び出しません。
誰が理由を教えてくれますか?
私のコードは次のとおりです。
- (void) authenticateLocalUser {
NSLog(@"====inside authenticateLocalUser");
[[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error) {
NSLog(@"==== error is %@", error);
[self callDelegateOnMainThread: @selector(finishAuthenticateLocalUser:) withArg: NULL error: error];
}]; }
ログは次のとおりです。
2012-06-20 19:24:06.569 HighNoon[4140:707] ====inside authenticateLocalUser
2012-06-20 19:24:06.571 HighNoon[4140:707] authenticateWithCompletionHandler: enter
2012-06-20 19:24:06.572 HighNoon[4140:707] authenticateWithCompletionHandler: exit