nsarray foreach code example Example: loop array objective c for (id object in array) { // do something with object }