NSEnumerator * enumerator = [myArray objectEnumerator]; id element; while(element = [enumerator nextObject]) { // Do your thing with the object. NSLog(element); }
A collection of example source codes for c/c++ and ios and android platform. It also includes objective c.
NSEnumerator * enumerator = [myArray objectEnumerator]; id element; while(element = [enumerator nextObject]) { // Do your thing with the object. NSLog(element); }