码迷,mamicode.com
首页 > 移动开发 > 详细

ios 跨页返回,从navigationController 删除指定页面

时间:2016-06-30 18:18:07      阅读:445      评论:0      收藏:0      [点我收藏+]

标签:

 

 

 1 - (void)removeVC:(UIViewController *)urViewControllerClass
 2 {
 3 //    NSArray* tempVCA = [self.navigationController viewControllers];
 4     NSMutableArray *tempVCA = [NSMutableArray arrayWithArray:[self.navigationController viewControllers]];
 5     
 6     for(UIViewController *tempVC in tempVCA)
 7     {
 8         if([tempVC isKindOfClass:[urViewControllerClass class]])
 9         {
10 //            [tempVC removeFromParentViewController];
11             [tempVCA removeObject:tempVC];
12             [self.navigationController setViewControllers:tempVCA animated:YES];
13             break;
14         }
15     }
16 }

 

ios 跨页返回,从navigationController 删除指定页面

标签:

原文地址:http://www.cnblogs.com/codemakerhj/p/5630694.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!