【发布时间】:2015-04-22 20:02:06
【问题描述】:
每次运行我的应用程序时,我都会在调试日志中收到该错误。我单击查找游戏,它带我进入主屏幕,由于此错误,键盘无法工作,当我点击后退按钮时,它只是弹出视图控制器(再次由于此错误)。我不知道如何解决它,所以任何帮助将不胜感激。谢谢。
// A peer-to-peer match has been found, the game should start
- (void)turnBasedMatchmakerViewController: (GKTurnBasedMatchmakerViewController *)viewController didFindMatch:(GKTurnBasedMatch *)match
{
// Display default view [presentingViewController dismissViewControllerAnimated:YES completion:nil];
[presentingViewController dismissViewControllerAnimated:YES completion:^{
// Present next controller here
[presentingViewController performSegueWithIdentifier:@"GamePlayScene" sender:match];
}];
// Removing line below fixes Warning: Attempt to dismiss from view controller <GameNavigationController: 0x78f4f820> while a presentation or dismiss is in progress!
// [self dismissModalViewController];
【问题讨论】:
标签: ios objective-c xcode game-center modalviewcontroller