I need to access to a NSMutableArray, in class1, from another class (class2). The solution I tried was to create a class method in class1 and call it from class2. Obviously, it is not possible because this is a restriction of class methods. I cannot figure out the solution. What can I do?
I need to access to a NSMutableArray , in class1 , from another class
Share
Generally you expose needed instance variables through properties.
This link covers properties.
http://cocoacast.com/?q=node/103
Once the correct variables are exposed then simply pass a reference to the needed class to a given method.