天天看點

UINavigationControlller pop的用法

[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];

      }

}