I've recently started learning objective-c and I'm facing some challenges with 2D arrays. To help explain my issue, I'll make use of my knowledge in javascript.
var row = 10;
var col = 10;
var array[row][col];
for (var i = 0; i < row; i++){
for (var j = 0; j < col; j++){
//do something here
}
}
row = 20;
col = 20;
for (var i = 0; i < row; i++){
for (var j = 0; j < col; j++){
//do something here
}
}
I'm looking to implement this logic in objective-c. Any suggestions on how I can achieve this?