In my app, I have about a dozen different view controllers, pushed onto or popped from the stack in different orders. When a view has appeared (I'm using viewDidAppear method) I need to determine whether this is because this view has just been pushed onto the stack or because one of its subviews was popped from the stack.
I went through this question: viewWillDisappear: Determine whether view controller is being popped or is showing a sub-view controller
But I don't think it's helping me very much. Any suggestions please?