1
我使用的是Game Center排行榜,该游戏中心排行榜可以正常运行并显示分数。唯一的问题是,当我模拟网络故障时(将手机置于飞行模式),发布评分时仍然返回空错误。发布代码是 -将分数提交给游戏中心
[scoreReporter reportScoreWithCompletionHandler: ^(NSError *error)
{
[self callDelegateOnMainThread: @selector(scoreReported:) withArg: NULL error: error];
}];
您希望在这种情况下返回“失败”。我不知道发生了什么事!任何帮助表示感谢,谢谢。