在启用Game Center的App中处理iOS Game Center App中的选定回合/游戏 [英] Handle Selected Turns/Games in iOS Game Center App in Game Center Enabled App

查看:81
本文介绍了在启用Game Center的App中处理iOS Game Center App中的选定回合/游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个启用了GKTurnBasedMatch Game Center的应用程序.我已经成功实现了GKLocalPlayerListener方法来侦听事件,例如player:receivedTurnEventForMatch:didBecomeActive:和其他方法.此外,如果用户点击GKTurnBasedMatchmakerViewController中的现有匹配项(例如,如果showExistingMatches设置为YES),则可以使用GKTurnBasedMatchmakerViewControllerDelegate方法turnBasedMatchmakerViewController:didFindMatch:.

I am creating a GKTurnBasedMatch Game Center-enabled app. I've successfully implemented GKLocalPlayerListener methods to listen for events, such as player:receivedTurnEventForMatch:didBecomeActive: and other methods. Additionally, if a user taps on an existing match in the GKTurnBasedMatchmakerViewController (for example, if showExistingMatches is set to YES), I can handle the event in the GKTurnBasedMatchmakerViewControllerDelegate method turnBasedMatchmakerViewController:didFindMatch:.

但是,我想轻按各种控件以在 iOS系统Game Center应用中查看比赛.

However, I want to handle tapping on the various controls to view a match within the iOS system Game Center app.

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

For example, if I navigate to the Game Center iOS pre-installed app (not my app), tap on the Turns tab, tap on the row for my app, tap on a match/turn, and then tap on "View Game" or "Accept Invite" or "Play your turn", I want to handle these match-specific actions in my app.

点击这些项目时,我的应用程序确实已启动,但是据阅读文档所知,没有办法获得与用户点击的匹配的额外信息,所以我可以正确显示该匹配项.

When these items are tapped, my app indeed launches, but as far as I can tell from reading the documentation, there is no way to get extra information about which match the user tapped, so I can appropriately show that match.

推荐答案

Apple选择删除此功能.

Apple has chosen to remove this feature.

他们的文件不正确.我与Apple开了一个bug,以进行进一步调查.这是令人沮丧的证据.

Their documentation is inaccurate. I opened a bug with Apple to investigate further. Here is the disheartening proof.

这篇关于在启用Game Center的App中处理iOS Game Center App中的选定回合/游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆