- (void)viewWillDisappear:(BOOL)animated{
NSInteger index = [self.navigationController.viewControllers indexOfObject:self];
if (index == NSNotFound){
//出栈
}else{
//别的入栈
}
}
- (void)viewWillDisappear:(BOOL)animated{
NSInteger index = [self.navigationController.viewControllers indexOfObject:self];
if (index == NSNotFound){
//出栈
}else{
//别的入栈
}
}
本文标题:如何判断一个VC调用ViewWillDisappear时,是自身
本文链接:https://www.haomeiwen.com/subject/bonqhxtx.html
网友评论