This question already has an answer here:
- How can I reverse a NSArray in Objective-C? 18 answers
I'm trying to achieve something like this
NSMutableArray *myArray = [NSMutableArray arrayWithObjects:@"A",@"B",@"C", nil];
NSLog(@"Array: %@", myArray);
//logs A, B, C.
//reverse code here
NSLog(@"Array: %@", myArray);
//logs C, B, A
The code isn't exact, just a demo. But you get the idea.
Any way to do this?