Reverse NSMutableArray

system picture system · Feb 28, 2011 · Viewed 23.1k times · Source

What is the best/correct way to reverse an NSMutableArray?

Answer

Ajay picture Ajay · Feb 28, 2011
themutablearray=[[[themutablearray reverseObjectEnumerator] allObjects] mutableCopy];