Is there a way to create an NSObject
and set values for it in one view controller, and get them back in another view controller by looking for the existing instance of that NSObject
?
Much like AppDelegate has its sharedInstance
that you can access from anywhere and thus put values into it from anywhere?
I created a view controller that instantiates my model object and fills its properties. How do I access that instance of the model object from another view controller?
I'm not asking how to pass data in a view controller that calls another view controller. I know how to do that. I'm asking how to set values to a model object from different, unrelated and hierarchically independent view controllers.