【IOS】导航--跳转到任意级视图
时间:2014-09-05 22:21:32
收藏:0
阅读:361
1 //方法一: 2 for(UIViewController *controller in self.navigationController.viewControllers){ 3 4 if([controller isKindOfClass:[OverWorkRecevice class]]){ 5 6 OverWorkRecevice *owr =(OverWorkRecevice *)controller; 7 8 [self.navigationController popToViewController:owr animated:YES]; 9 10 } 11 12 } 13 //方法二: 14 [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:1] animated:YES];
原文:http://www.cnblogs.com/DannyApple/p/3958720.html
评论(0)