I used a "push" segue from a ViewController after using the menu in XCode Editor > Embed In > Navigation Controller. I have a button on this presented view that slides in from the side that I would like to dismiss the pushed view. I realize there is a method:
[self.navigationController popViewControllerAnimated:YES];
But I don't have a pointer to the Navigation Controller I added through the XCode menu..
My App Delegate has the window's root view controller as my main ViewController - so I haven't done anything there after adding the Navigation Controller from the XCode menu.
How can I get a pointer to this added Navigation Controller so I can call the pop method programmatically on the pushed view controller? Thanks!