美文网首页iOS学习
iOS popToViewController

iOS popToViewController

作者: paradisery | 来源:发表于2016-05-06 10:32 被阅读1314次

    [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:([self.navigationController.viewControllers count] -2)] animated:YES];

    for (UIViewController *temp in self.navigationController.viewControllers) {

    if ([temp isKindOfClass:[你要跳转到的Controller class]]) {

    [self.navigationController popToViewController:temp animated:YES];

    }

    }

    相关文章

      网友评论

        本文标题:iOS popToViewController

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