I want to take the values from NSMutableArray but want to read from last index to 1st index
thank you
2 other options:
Simple for-loop (surely not recommended):
for (int i = [array count]-1; i >= 0; ++i)
id value = [array objectAtIndex: i];
Block-based enumeration:
[array enumerateObjectsWithOptions: NSEnumerationReverse
usingBlock: ^(id obj, NSUInteger idx, BOOL *stop){
//do something
}];
for ( int i = [array count]-1; i>=0; i--)?– sortedArrayUsingDescriptors:– sortedArrayUsingSelector:– sortedArrayUsingComparator: