You can do this if you wrap the array in a structure. Structures are supported in @property notation (see, for example, CGRect ratings on CALayer).
First define your structure:
typedef struct { int contents[10][10]; } TenByTenMatrix;
Then in your class interface you can:
@property (assign) TenByTenMatrix field;
Note that in this case you can get or set the whole array using the property. Therefore you cannot do
self.field.contents[0][0] = 1;
You will need to do
TenByTenMatrix temp = self.field; temp.contents[0][0] = 1; self.field = temp;
source share