gpt4 book ai didi

ios - 检索 GKLeaderboard 中的所有分数

转载 作者:行者123 更新时间:2023-11-29 13:28:26 25 4
gpt4 key购买 nike

如何检索 GKLeaderboard 的所有分数? (我正在制作自己的排行榜图形)。我需要知道某个排行榜中的分数数量,但似乎无法通过轮询 GC 来获取此类信息?

http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/LeaderBoards/LeaderBoards.html#//apple_ref/doc/uid/TP40008304-CH6-SW14

最佳答案

我感觉答案是 GKLeaderboard 的 maxRange 属性。文档:

This property is invalid until a call to loadScoresWithCompletionHandler: is completed. Afterward, it contains the total number of entries available to return to your game given the filters you applied to the query.

http://developer.apple.com/library/ios/documentation/GameKit/Reference/GKLeaderboard_Ref/Reference/Reference.html#//apple_ref/occ/instp/GKLeaderboard/maxRange

所以这将是排行榜表格 View 中的行数。

关于ios - 检索 GKLeaderboard 中的所有分数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12470736/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com