I want to pass data from firstViewController -> secondNavigationcontroller -> secondTabBarController -> secondViewcontroller.
I can pass it to my navigationcontroller like this:
if segue.identifier == "StartMatchSegue" {
if let destination = segue.destination as? SecondNavigationController {
destination.delegate = self as? UINavigationControllerDelegate
destination.testString = "lets play"
}
}
but I cant figure out how to pass it all the way.