我有一个正在开发的应用程序,它有 gamecenter 排行榜,一切正常,现在突然间,当我在应用程序中进入游戏中心时,游戏中心窗口几乎什么都没有显示,只有应用程序的名称和一个很大的旧 NO窗口中间的项目。
这只发生在我的物理设备上,Game Center 模拟器正常显示...我需要在我的物理设备上重置某些东西吗?
我没有触及代码,当我打开游戏中心应用程序本身时,我看到我的应用程序沙箱和排行榜在那里并正确更新......这是我的应用程序中显示游戏中心窗口的代码,没有'没有被改变或触及。
- (void) showGameCenter
{
UIViewController *vc = self.view.window.rootViewController;
GKGameCenterViewController *gameCenterController = [[GKGameCenterViewController alloc] init];
if (gameCenterController != nil)
{
gameCenterController.gameCenterDelegate = self;
[vc presentViewController: gameCenterController animated: YES completion:nil];
}
}
最佳答案
如果您的 plist 中的 Required device capabilities
中缺少 gamekit
,就会发生这种情况。
关于ios - 游戏中心显示 "NO ITEMS",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22578474/