, . , 2D-. , , , . , , , ( ) , . 2- . . , , . , .
, , 6x6:
int arrayStride=6;
int arrayDepth=6;
NSMutableArray *newArray = [[NSMutableArray alloc] initWithCapacity:arrayStride*arrayDepth];
, ;
for(int i=0; i<arrayStride*arrayDepth; i++) [newArray addObject @"whatever"];
Then after that you can access the objects using firstDim + secondDim * 6
int firstDim = 4;
int secondDim = 2;
NSString *nextString = [newArray objectAtIndex:firstDim+secondDim*6];
source
share