UINavigationController popToViewController用法

http://blog.sina.com.cn/s/blog_8c0eaa5001011xiz.html


popToViewController用法 


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

for (UIViewController *controller inself.navigationController.viewControllers) {
      if ([controller isKindOfClass:[你要跳转到的Controller class]]) {
            [self.navigationControllerpopT oViewController:controller animated:YES];
      }
}

你可能感兴趣的:(UINavigationController popToViewController用法)