A rather simple question: is the enumeration order in the for loop guaranteed to correspond to the order of the NSArray target (i.e., start at object index 0 and increment by one each time)?
In particular, is the listing order in the next code fragment guaranteed to start at array index 0 and increment by 1 every cycle? ( codesArray is an NSArray)
for (NSNumber *num in codesArray) {
Or, if I want to guarantee the order of enumeration, I need to make a traditional style for loop:
for (int i=0; i<[codesArray count]; i++) {
Thanks!
source share