gpt4 book ai didi

swift - Yowza 多次恢复状态栏

转载 作者:行者123 更新时间:2023-11-28 07:51:13 25 4
gpt4 key购买 nike

当我调用函数 OpenGC 时,排行榜显示正常,但当我关闭游戏中心时一切正常,但随后我在调试中遇到以下错误:

2018-04-03 01:12:10.143194+0300 app.name[356:38176] [Error] yowza! restored status bar too many times! 2018-04-03 01:12:10.161688+0300 app.name[356:38176] [Error] Extension request cancelled with error: Error Domain=NSExtensionErrorDomain Code=-2 "Extension cancelled by host." UserInfo={NSLocalizedDescription=Extension cancelled by host.}

我使用的代码在这里:

@IBAction func OpenGC(_ sender: Any) {
let VC = self
let GCVC = GKGameCenterViewController()
GCVC.gameCenterDelegate = self
GCVC.viewState = .leaderboards
GCVC.leaderboardIdentifier = "my.leaderboard"
VC.present(GCVC, animated: true, completion: nil)
}

func gameCenterViewControllerDidFinish(_ gameCenterViewController: GKGameCenterViewController) {
gameCenterViewController.dismiss(animated: true, completion: nil)

我发现了同样的问题,但没有解决方案: Unity Forum

如果有人有想法,真的很感激!

谢谢

最佳答案

我们在使用 Xcode 10.2.1 的 tvOS 构建(iOS 工作正常)中也遇到了这个错误。经过一位同事的进一步调查,在 tvOS AppStore 上发现的其他 tvOS 游戏似乎也遇到了同样的行为。

我已经向 Apple 提交了一个错误,但在撰写本文时,似乎没有人设法解决这个问题,所以在 Apple 提供针对此问题的修复程序之前,你最好像这样提交它。

关于swift - Yowza 多次恢复状态栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49619633/

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