2016.9.8
for(UIViewController*controllerinself.navigationController.viewControllers) {
if([controllerisKindOfClass:[BorrowingViewControllerclass]]) {
[self.navigationControllerpopToViewController:controlleranimated:YES];
}
}
if(self.type==1) {//1表示从借款界面push来,2代表从借款管理push来
[self.navigationControllerpopViewControllerAnimated:YES];
}else{
BorrowingViewController*controller = [[BorrowingViewControlleralloc]init];
[self.navigationControllerpushViewController:controlleranimated:YES];
}