gpt4 book ai didi

game-center - 如何在没有 GKMatchmakerViewController 的情况下发送新的基于消息的邀请

转载 作者:行者123 更新时间:2023-12-04 02:46:00 25 4
gpt4 key购买 nike

由于某些原因,我们不想使用 GKMatchmakerViewController。目前,我们为应用程序的用户提供了通过 UI 中显示的好友列表邀请他们的 Game Center 好友的可能性。

虽然这在 iOS 10 中仍然可以实现,但用户将无法再添加 GC 好友。因此,我们希望使用 iOS 10 中引入的新的基于消息的邀请。

如何在不使用 GKMatchmakerViewController 的情况下存档?我只想显示一个按钮邀请 friend ,它打开 View 以向任何人发送基于消息的邀请,就像 GKMatchmakerViewController 中的按钮一样。

最佳答案

当前 (iOS 10.2) 无法在没有 GKMatchmakerViewController 的情况下显示 iMessage View .

在我的应用程序中,我仍然会为匹配提供完全自定义的 View 。只有当 iOS 10 设备上的玩家想要邀请 friend 时,我才会显示 GKMatchmakerViewController .这不是一个很好的解决方案,但目前,它似乎是最可行的解决方法。

我还将在 Apple 的错误报告器中为此提出一个问题。

关于game-center - 如何在没有 GKMatchmakerViewController 的情况下发送新的基于消息的邀请,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39444662/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com