美文网首页iOS 大神之路iOS开发
IOS navigationController跳转指定 控制器

IOS navigationController跳转指定 控制器

作者: oneDemo | 来源:发表于2015-08-10 15:28 被阅读6428次

    [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:2] animated:YES];

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

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

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

    }

    }

    [self.navigationControllerpopToViewController:[self.navigationController.viewControllersobjectAtIndex: ([self.navigationController.viewControllerscount] -6)]animated:NO];

    相关文章

      网友评论

      本文标题:IOS navigationController跳转指定 控制器

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