I am passing data between two different UIViewControllers located in two different .storyboard files in Xcode. (This is a fairly large project, so I had to split it into different storyboards.)
I already set the variable "exercisePassed" (String) in the view to which I would like to pass my data, and I already know how to navigate between two views located in different storyboards. Like this.
var storyboard = UIStoryboard(name: "IDEInterface", bundle: nil) var controller = storyboard.instantiateViewControllerWithIdentifier("IDENavController") as! UIViewController //************************************** var ex = //Stuck Here ex.exercisedPassed = "Ex1" //************************************** self.presentViewController(controller, animated: true, completion: nil)
How to transfer data without using Segue / PrepareForSegue?
source share