我收到總是失敗在我的cocos2d的,但是當我在我看來,基於應用程序中運行該項目,然後它會給我的成功,比分會很容易地提交得分submittion失敗
[[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error){
if (error ==nil) {
NSLog(@"Success");
} else {
NSLog(@"Fail");
}
}];
GKScore *myScoreValue = [[[GKScore alloc] initWithCategory:@"123"] autorelease];
myScoreValue.value = lastScore;
[myScoreValue reportScoreWithCompletionHandler:^(NSError *error){
if(error != nil){
NSLog(@"Score Submission Failed");
} else {
NSLog(@"Score Submitted");
}
}];
錯誤域= GKErrorDomain代碼= 2「請求的操作已被取消。」 UserInfo = 0x232d10 {NSLocalizedDescription =請求的操作已被取消} – Chandaboy 2011-03-11 09:26:08