I have 3 View Controllers in Storyboard. They're named "Letters", "Numbers", and "Other".
What I want is a variable that changes based on which category was used last.
Ex: The user goes to the Letters View Controller (var categories = "Letters"), and then to the Other View Controller, and is able to use the "categories" variable (which is still "Letters"). User goes to the Numbers View Controller (var categories = "Numbers"), and then to the Other View Controller, and is able to use the categories variable (which is now "Numbers").
I'm not sure if my question and example are clear enough, and if they aren't feel free to ask, and I'll try to further explain.
Any help would be greatly appreciated.
Thanks in advance.