当我尝试存储小于当前值的得分值时,不会存储它。有什么帮助吗?

GKScore *scoreReporter = [[GKScore alloc] initWithCategory:@"top_matcher"];
scoreReporter.value = currentScore - 10;
[scoreReporter reportScoreWithCompletionHandler:^(NSError *error) {
  NSLog(@"ERROR:%@ %lld %@", error, score, scoreReporter);
}];

最佳答案

您无法降低得分(如果您的排行榜设置为最高得分),一旦您将其发布就可以了。

关于ios - 减少GKScore值,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/17821903/

10-12 05:55