I am working on an iphone application and don't know what the best way to hold temporary data across views. for example i have xml on a server and i parse the data into an object so that I can hold the information. The xml has some data that i want to be displayed on one view and other data that i want to be displayed on another view. I have a class called dataStore that I want to hold the data across the views, what is the best iphone practice to do that?
I have looked into many options and I think its a choice between:
1) use the dataStore as a delegate and hold the data in a delegate thaat can be accessed.
2) use the dataStore as a singleton class and only allow one instance of the class and access the data from the shared instance of the dataStore class.
3) maybe even an NSMangedObjectContext which i dont know about but am familiar with the android way of passing data through an application context and instance.
If someone could help me with choosing which is the best practice on the iphone i would be much greatly appreciated.