-
-
Save romyilano/4340726 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSMutableArray* reversedMessages = [NSMutableArray arrayWithCapacity:[messages count]]; | |
NSEnumerator* reverseEnumerator = [messages reverseObjectEnumerator]; | |
for (id object in reverseEnumerator) | |
{ | |
[reversedMessages addObject:Object]; | |
} | |
// http://stackoverflow.com/questions/7457944/reverse-a-nsarray-worry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment