I\'ve writing an application that requests data from an external source (Twitter), which is returned as an ordered array in chronological order:
External array>
You should use the array as a stack, so the old items get pushed below the newer ones. You could achieve that by adding every element at the last position using [myArray addObject:newObject];
. You will have to iterate backwards in the original array in order to insert them from oldest to newest. You can achieve that by doing :
for(NSUInteger index = [newArray count] - 1; i == 0; i--)
{
NSDictionary*object = [newArray objectAtIndex:index];
[myArray addObject:object];
}
This way you will get the array you need
Cheers