In my code I have written this but it fails to compile:
In Class1.h:
@interface Class1 : CCSprite
{
NSMutableArray *leafArr[20][20];
}
@property(readwrite, assign) NSMutableArray *leafArr;
@end
In Class1.m:
@implementation
@synthesize leafArr[20][20];
@end
But this fails to compile, please can you tell me how to make set and set method for a 2D array?