NSMutableArray *navigationArray = [[NSMutableArray alloc] initWithArray: self.navigationController.viewControllers];
[navigationArray removeObjectAtIndex: navigationArray.count-2];// 移除指定的controller
self.navigationController.viewControllers = navigationArray;
网友评论