我可以在sourceViewController
之后获得preareForSegue:
模态segue吗?
[UINavigationController]
|-[ViewControllerA]-------\
|--(modal)--> [UINavigationController]-[ViewControllerC]
[UINavigationController] |
|-[ViewControllerB]-------/
完成ViewControllerC
后,我想执行sourceViewController
的展开segue。
我写了以下代码,但它没有工作
if ([self.presentingViewController isKindOfClass:[ViewControllerA class]]) {
[self performSegueWithIdentifier:@"UnwindToViewControllerA" sender:self];
} else if ([self.presentingViewController isKindOfClass:[ViewControllerB class]]) {
[self performSegueWithIdentifier:@"UnwindToViewControllerB" sender:self];
}
有没有解决方案?