美文网首页
iOS push的判断

iOS push的判断

作者: 夏天爱西瓜汁 | 来源:发表于2017-11-28 11:21 被阅读36次

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];

}

相关文章

网友评论

      本文标题:iOS push的判断

      本文链接:https://www.haomeiwen.com/subject/zvbdbxtx.html