NSArray *temArray = self.navigationController.viewControllers; for(TYLifeListViewController *temVC in temArray) { if ([temVC isKindOfClass:[TYLifeListViewController class]]) { [self.navigationController popToViewController:temVC animated:YES]; } } }
它的存储方式是栈。跳过的界面会被释放,出栈了就会释放