Parent
View Controller
_________________
| |
| |
| | Navigation Cont.
|_________________| _________________
| | | |
| | | |
| Container View | --> | | --> Child View Controllers
| | | |
|_________________| |_________________|
My app has a navigation structure composed by a parent view controller and a container that contains a navigation controller (and its child view controllers). The problems is that during the initialisation of these child View Controllers I want to pass some values provided by the Parent View controller. Unfortunately the method prepareForSegue
used in the parent only detects the container segue but its not called when the child view controllers are changing.
How could this problem be addressed? I'm using Swift but I also understand Objective-C.