refer:https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Collections/Collections.html
集合是以一定的顺序存储和访问其它对象(通常是数值)的对象。
NSArray
索引从0开始
NSDictionary
使用键-值对
NSSet
则负责对象的随机存储(NSCountedSet类使集合具有唯一标识);declare the programmatic interface to an unordered collection of objects;
NSEnumerator
对象,您可以访问一个集合中的元素序列。集合对象是属性列表的必要元素,和其它所有对象一样,它也可以被归档和分发
NSHashTable
NSIndexPath
NSIndexSet
![]()
NSMapTable
NSMapTable is a mutable collection modeled after NSDictionary but provides different options. 1.value可以是任何指针,不一定是对象 2.key和value可以拷贝或者使用指针 3.key和value都是弱引用,如果外部释放,则再maptable中删除 |