- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我尝试存储小于当前值的分数值时,它不会被存储。有什么帮助吗?
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/
我有时遇到 SIGABRT 崩溃,崩溃提示:GKScore 必须包含初始化值。 所以它追踪到这一行: [localScore reportScoreWithCompletionHandler:^(NS
在苹果的 GKLeaderboards示例代码,它们展示了如何存储 GKScore 对象,以便在发送失败时稍后提交。但是,Reporting Scores To Game Center 的文档说“如果
当我尝试存储小于当前值的分数值时,它不会被存储。有什么帮助吗? GKScore *scoreReporter = [[GKScore alloc] initWithCategory:@"top_mat
有人在尝试将 Game Center 集成到 iOS 7 应用程序时遇到过这个错误吗? A GKScore must specify a leaderboard. 这是失败的代码: if(points
我对 iOS 中与“游戏中心”相关的主题有疑问:GKAchievement 与 GKScore? (1) GK成就 我知道在 iOS Game Center 中,我们可以定义成就和排行榜并指定,例如,
谁能告诉我如何使用 C# 编写 ReportScores 示例?我发现了很多关于它是如何用 objective-C 而不是 C# 编写的例子,而且转换器很贵。我一直在使用旧的、现在已弃用的 GKSco
让 highscore = leaderboardRequest.scores[0] 为! GKScore 结果为 无法下标“[GKScore]”类型的值? Swift2 中正确的语法是什么 最佳答案
我是一名优秀的程序员,十分优秀!