English 中文(简体)
页: 1 头部显示没有核心数据
原标题:iOS Leaderboard displays no score data

我难以把我的记分数据寄给我的游戏中心领导板。 我使用宇宙2d发动机。

I followed the instruction on Apples checklist: https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/LeaderBoards/LeaderBoards.html#//apple_ref/doc/uid/TP40008304-CH6-SW14

I checked BundleIDs, set up the Leaderboards on iTunesConnect.

在申请启动时,我在当地角色上签字。 因此,我可以看到屏幕上“Welcome re......”的顶点,而且我也说,我是在Sand Box的。

为了分配分数,我使用最佳实践代码。 当我辩论一下该守则时,我可以看到,在发送计分数据方面没有错误。 我还几次检查了领导人身份证的拼写。

当我开放游戏中心时,我看望控制器时,根本看不到任何分。 我还检查了我与我的Sand Box账户的记录。

任何建议?

纽约总部

最佳回答

It seems to be that the sandbox leaderboard server from Apple had have a problem. Without any changes on my code it worked one day later.

问题回答

我也面临同样的问题,我花了几小时才指出,我划定了错误的记分范围。 请对此加以仔细研究,特别是当你储存浮体或负值而不进行分类时。

For example, when you want to store score with format Fixed point - to 3 Decimals, score = 1.234 in this case

在向主机储存价值时,你已经把分数增加1 000倍,以便具有分类价值:

int64_t gcScore = (int_64t)(score * 1000);

因此,如果你计划储存1.234美元的价值,那么用于领导板的实际价值应为1234。 在此情况下,如果你将分数从0到100不等,比1.234大得多,但分数却由于100和1234而没有节省。

GKLeaderBoardViewController class for counting Highest Score.For more details I suggested you to read below link.Thanks





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签