UIViewController *vc = self.presentingViewController;
while (vc.presentingViewController) {
vc = vc.presentingViewController;
}
[vc.presentedViewController dismissViewControllerAnimated:YES completion:NULL];
当然返回第三级页面就是[vc.presentedViewController.presentedViewController dismissViewControllerAnimated:YES completion:NULL];
网友评论