ios 如何在游戏中心提交我的游戏获胜时间

How To submit my time of win game in game center in ios

如何 post/Submit 我在 iOS 游戏中心的时间 我在 2 完成我的游戏并提交我的时间 游戏中心

02.00 并敏锐地 leaderboard 像这样节省时间 0.00.02 我想提交我的时间在排行榜中看起来像 0.02.00

currentScore=02.22;

[[GameCenterManager sharedManager] saveAndReportScore:currentScore leaderboard:leaderboardNameID
                                                    sortOrder:GameCenterSortOrderLowToHigh];

score 参数是一个整数,因此您应该跟踪秒数作为分数,而不是分钟数:

int score = 2 * 60 + 22;   // 142 seconds = 2m22s

Reference