Reputation: 5424
I have a segue between two navigationControllers:
How can i "catch" the segue in prepareForSegue in one of the ViewControllers in the NavigationControllers ViewController-stack?
Upvotes: 0
Views: 121
Reputation: 6599
Navigation Controllers don't act as traditional view controllers.
How I would implement what you're asking is below, but I would first ask you: Why do you have two navigation controllers linking to eachother?
This is a very nontraditional use of navigation controllers. Navigation controllers simply control your navigation stack. They don't present any information to the user. My guess is if we looked at what you're trying to accomplish, this setup wouldn't be your best option.
That said, if you absolutely must accomplish something in the way you said above, here's how you could do it:
Upvotes: 2