如何判断一个VC调用ViewWillDisappear时,是自身
2017-07-05 本文已影响0人
_SHIZI
- (void)viewWillDisappear:(BOOL)animated{
NSInteger index = [self.navigationController.viewControllers indexOfObject:self];
if (index == NSNotFound){
//出栈
}else{
//别的入栈
}
}