I use the following code to create a public static array in C#
public class A{
public static array[] obj;
}
I have another class B.
From class B I call
A.ArrayName and I get the array I use in class A.
I wanted to know, what is the equivalent of this in objective C
There is no special syntax for this. You just define a class method to return the static array.
For example:
Or for messier code, but slightly better performance (a good idea in a tight loop, but usually not worthwhile):
To access it from class
Byou just do:[A array]