我有 3 个 View Controller ,A、B 和 C。 B 出现在A 上。我需要的是在点击B 按钮时在A 上显示C 并关闭B。但我无法这样做。有没有一些解决方法。 感谢您的帮助。
最佳答案
在iOS5中点击B上的按钮,
UIViewController *presentingVC = self.presentingViewController;
[self dismissViewControllerAnimated:YES completion:^{
[presentingVC presentViewController:vc3 animated:YES completion:nil];
}];
关于iOS - 从另一个呈现的 View Controller 呈现 View Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21896409/