美文网首页
dismissToRootVC

dismissToRootVC

作者: 码农淏 | 来源:发表于2016-12-03 16:21 被阅读22次
    -(void)dismissToRootViewController
    {
        UIViewController *vc = self;
        while (vc.presentingViewController) {
            vc = vc.presentingViewController;
        }
        [vc dismissViewControllerAnimated:YES completion:nil];
    }
    

    相关文章

      网友评论

          本文标题:dismissToRootVC

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