I was wondering how I would go about accessing one instance of a class, say "ship class" across multiple views.
Lets say I have a rootViewController and three subviews, one Main, one battle, and one landing. Where exactly would I implement an instance of a class that stores all the information on my ship and access it though the other views. If my ship has x missiles left, how does another view access that information to display it. If I implement it on the Main view how does the landing view get that info?
I know there has to be an easy way to do this, and I bet there is a way you are supposed to do it without implementing the ship class in any of the views per se. I am still fairly new to programming for the iPhone though.
Thank you in advance for any help you all may provide.