pop回到之前的某一个页面
循环遍历
1 - (void)backHome:(UIButton *)button 2 { 3 self.navigationController.navigationBarHidden = NO; 4 CaseViewController *caseView = [[CaseViewController alloc] init]; 5 for (UIViewController *vc in self.navigationController.viewControllers) { 6 7 if ([vc isKindOfClass:[caseView class]]) { 8 9 [self.navigationController popToViewController:vc animated:YES]; 10 } 11 12 } 13 14 15 }
让明天,不后悔今天的所作所为
posted on 2015-11-25 16:40 Sinner_Yun 阅读(282) 评论(0) 编辑 收藏 举报