Reversing an array in Objective C October 09, 2009

Was looking for the best way to reverse an array in Objective C and stumbled over this solution that might not be obvious to everyone (wasn’t to me at least).

    NSArray *reversedArray = [[array reverseObjectEnumerator] allObjects];