Skip to content

Instantly share code, notes, and snippets.

@rickcnagy
Created August 1, 2013 20:23
Show Gist options
  • Save rickcnagy/6134904 to your computer and use it in GitHub Desktop.
Save rickcnagy/6134904 to your computer and use it in GitHub Desktop.
Simple code to reverse an array, just like reverse() in Python. From http://simplyhacking.com/reverse-array-in-objc.html
NSArray *reversedArray = [[array reverseObjectEnumerator] allObjects];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment