I need to know when my view controller is about to get popped from a nav stack so I can perform an action.
I can\'t use -viewWillDisappear, because that gets called
Try making this check in viewwilldisappear if ([self.navigationController.viewControllers indexOfObject:self] == NSNotFound) { //popping of this view has happend. }