I'm trying to get my head around how to do this and can't figure it out. I want to have a group of NSMutableArrays
that are shared between a number of views and are used for a few different data sets that are the same. So I have one called events one called times and so on. They are used multiple times with different sets of data but the data is always of the same type.
What I want to do is to make these globally accessible but there are 2 things I'm struggling with regarding that.
- How do I make them globally accessible?
- How do I initialise them in each class so that the data can be set in that class?
Ive been looking over a few things on here and what I have at the moment is a class called Football
where they are defined in a method called DefineArrays
. Is this the right way to approach this problem? Then how do I call that method from another class?