The first is the most common one-dimensional array:
Defining a one-dimensional array
Nsarray *array1 = @[@ "0", @ "1", @ "2"];
A member in an array based on the subscript
NSLog (@ "%@", array1[0]);
Then the two-dimensional array:
Defining two-dimensional arrays
Nsarray *array2 = @[@[@ "00", @ "01", @ "02"],@[@ "10", @ "11", @ "12"]];
A member in an array based on the subscript
NSLog (@ "%@", array2[1][0]);
followed by three-dimensional arrays:
Defining three-dimensional arrays
Nsarray *array3 = @[@[@[@ "000", @ "001", @ "002"]],@[@[@ "100", @ "101", @ "102"]];
A member in an array based on the subscript
NSLog (@ "array3 =%@", array3[1][0][2]);
Why would you think of that? Because the C language is based on the subscript in the two-dimensional array of members, and then I would like to try the OC in the array of objects can do, did not think of is not only can, multidimensional array is also available, just a little more complicated.