I have an app with a main menu, one interface where you can do some math stuff to get a string with a result number. I want this number to be used in another formula in another view, which is not directly linked to this view.
All the stuff I found on how to pass data on is using prepareForSegue, but as I don’t have a segue between this scene and the scene I want the number in, I don’t see how I could get use of this method.
What would be the best way to do this? Make some sort of database and fetch data from here? Some method? I’m not too experienced with programming, so detailed answers would be greatly appreciated.
Simply use user defaults for your string.