剛過我的代碼調用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