标签:TE table obj i++ index 跳转 nim pvc navig
-(void)jumpVC:(UIViewController *)vc{
NSArray *vcs = self.navigationController.viewControllers;
NSMutableArray *newVCS = [NSMutableArray array];
if ([vcs count] > 0) {
for (int i=0; i < [vcs count]-1; i++) {
[newVCS addObject:[vcs objectAtIndex:i]];
}
}
[newVCS addObject:vc];
[self.navigationController setViewControllers:newVCS animated:YES];
}
标签:TE table obj i++ index 跳转 nim pvc navig
原文地址:https://www.cnblogs.com/holyday/p/9110249.html