I'm starting with iPhone development and I need to use a multidimensional array.
I initialize it using:
NSArray *multi=[NSArray
arrayWithObjects:[NSMutableArray arrayWithCapacity:13],
[NSMutableArray array],nil];
But when I try to assign values to n-th cell like this:
[[multi objectAtIndex:4] addObject:@"val"];
The app hangs because index 4
is beyond the bounds [0 .. 1]
.
Which is the correct way to init my multi-array? Thanks in advance and greetings.