i am using navigationController (push and pop) but in a special case i have to show the next viewcontroller using modal segue , and when i dismiss that modal i want to pop the last viewController in the navigationController and then push a new one to appear after dismissing the modal one , how can i access the navigationController that is full of viewControllers from a modal viewController i can send in the last element in navigationController as self in prepareForSegue for the modal but i am asking if there is another way , sorry my questions are always complicated i am using navigationController (push and pop)