In java, one can make use of the generic LinkedList to improve the efficiency when objects are often added to the front of the list. What is its equivalent in the iOS frameworks?
In java, one can make use of the generic LinkedList to improve the efficiency
Share
You need to understand that in Foundation classes like
NSArray, etc, is not what you learned as an array, etc in your beginning programming class. In particular, it doesn’t have the performance characteristics you would normally associate to an array.On this point, there are many nice blog posts, e.g. one by Ridiculous Fish and another by Cocoa with Love
So, as everybody else said, just use
NSMutableArray.