push下个页面时销毁当前的controllers
A --->push 到B --->push到C 点击返回到A,
NSMutableArray *viewControllers = [self.navigationController.viewControllers mutableCopy];
[viewControllers removeObject:self];
[viewControllers addObject:homeVc];
[self.navigationController setViewControllers:viewControllers animated:YES];
网友评论