First, Introduction
Nsset exactly what type, in fact it and nsarray functional nature, for storing objects, belong to the collection; Nsset, Nsmutableset class declares programming interface objects, unordered collections, which are stored in memory in a discontinuous way, Unlike Nsarray (an ordered set) class declares that the programming interface object is an ordered collection, where the memory location is contiguous;
Nsset and our Common Nsarry difference is: In the search for an element nsset more efficient than nsarray, mainly because it uses a hash (hash, also can be translated as a hash) algorithm.
Nsset and Nsarray are classes, only cocoa objects can be added, and if you need to include basic data types (int,float,bool,double, etc.), you need to encapsulate the data into a nsnumber type.
Ii. Summary of common methods of Nsset
Iii. Summary of common methods of Nsmutableset
iOS Note nsset