the view controller that is pushed onto the stack cannot be an instance of tab bar controller and it must not already be on the navigation stack.
I want to know how could I discover if the view controller that I’m about to push onto the stack is already in stack.
Check if its
navigationControllerproperty isnil.