[Solved] Get the index value each for loop [closed]


NSInteger index = 0;

for(NSMutableDictionary *dict in arr_thisWeek){
    NSLog("%d",[arr_thisWeek objectATIndex:index);

    index++;
}

But you already have the item at that index so you shouldn’t need it for array iteration.

0

solved Get the index value each for loop [closed]