美文网首页
iOS模态跳转返回到第二级页面或某一级页面

iOS模态跳转返回到第二级页面或某一级页面

作者: qqqqnnnndddd | 来源:发表于2020-11-25 18:09 被阅读0次

UIViewController *vc = self.presentingViewController;

    while (vc.presentingViewController) {

    vc = vc.presentingViewController;

    }

    [vc.presentedViewController dismissViewControllerAnimated:YES completion:NULL];

当然返回第三级页面就是[vc.presentedViewController.presentedViewController dismissViewControllerAnimated:YES completion:NULL];

相关文章

网友评论

      本文标题:iOS模态跳转返回到第二级页面或某一级页面

      本文链接:https://www.haomeiwen.com/subject/ikgniktx.html