Q:

iPhone - Global Variable In A Storyboard

I want to have a global array/variable in an iPhone app that uses storyboard. Is there a way to access such a global variable from a number of different storyboard screens?
Thanks
Kevin

A:

The storyboard part is somewhat irrelevant: the standard way of achieving this in cocoa is to define a singleton object as your model, share its header among the controllers defined in your application (through storyboard or otherwise) and create an instance of your shared model in the application start-up code.
For information on implementing singletons in Objective C read this link.

