请帮帮我。关闭现有视图控制器后如何显示另一个视图控制器?这是我的代码:
- (void)matchmakerViewControllerWasCancelled:
(GKMatchmakerViewController *)viewController{
[self dismissModalViewControllerAnimated:YES];
ViewController *Vc = [[ViewController alloc]init];
[self presentModalViewController:Vc animated:YES];
}
我的代码不起作用。请帮帮我。如果我在关闭ModalViewController 后编写NSLog,它会显示NSLog,但不会显示ViewController。谢谢