刚过我的代码调用presentModalViewController dismissModalViewControllerAnimated有问题
- (void)matchmakerViewController:(GKMatchmakerViewController *)viewController didFindMatch:(GKMatch *)match
{
[menuViewController dismissModalViewControllerAnimated:YES];
[GameKitWrapper getSingleton].match = match;
match.delegate = [GameKitWrapper getSingleton].remotePlayer;
[menuViewController presentModalViewController:avatarSelectionViewController
animated:YES];
}
但我有问题,该辞退工作,但不是现在。当我更改dismissModalViewControllerAnimated:YES dismissModalViewControllerAnimated:没有它工作,但不好看。
任何帮助表示赞赏。
这个答案是正确的。 – adam 2011-05-02 08:04:15
我在这里有一个替代(http://stackoverflow.com/a/8317603/126855),不需要覆盖viewDidAppear :. – Bill 2011-11-29 20:56:45