ios - 在 Game Center Enabled App 中处理 iOS Game Center App 中的选定回合/游戏

标签 ios iphone game-center gamekit

我正在创建一个支持 Game Center 的 GKTurnBasedMatch 应用程序。我已经成功实现了GKLocalPlayerListener方法来监听事件,比如player:receivedTurnEventForMatch:didBecomeActive:等方法。此外,如果用户点击 GKTurnBasedMatchmakerViewController 中的现有匹配项(例如,如果 showExistingMatches 设置为 YES),我可以在 GKTurnBasedMatchmakerViewControllerDelegate 方法 turnBasedMatchmakerViewController:didFindMatch: 中处理事件。

但是,我想在 iOS 系统 Game Center 应用程序 中点击各种控件来查看比赛。

例如,如果我导航到 Game Center iOS 预装应用程序(不是我的应用程序),点击 Turns 选项卡,点击我的应用程序所在的行,点击匹配/回合,然后点击“查看游戏”或“接受邀请”或“轮到你玩”,我想在我的应用程序中处理这些特定于比赛的操作。

当这些项目被点击时,我的应用程序确实启动了,但据我阅读文档所知,没有办法获得关于哪些匹配用户点击的额外信息,所以我可以适本地显示匹配。

最佳答案

Apple 已选择删除此功能。

他们的文档不准确。我向 Apple 打开了一个错误以进一步调查。这是令人沮丧的证据。

Apple bug report

关于ios - 在 Game Center Enabled App 中处理 iOS Game Center App 中的选定回合/游戏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31275508/

相关文章:

iphone - 对 NSCFTimer 感到困惑...它是什么?

php - 如何使用 PHP 验证我的 'third party server' 上的 GKLocalPlayer?

ios - 在 UItextfield 的右 View 上添加一个按钮,文本不应与按钮重叠

ios - 如何将不随 map 移动的叠加层添加到 GMSMapView?

objective-c - 在 iOS 中播放声音会暂停背景音乐

iphone - UIWebView didFinishLoading 多次触发

iphone - iOS 4.2 中未调用 viewWillAppear 方法

iphone - 移动设备收到 HTTP 504 错误

ios - 游戏中心转向基于不同应用程序版本的游戏

iOS9 “This game is not recognized by game center.”