What are data structures in Objective-C? -
What are the data structures that we can use in Objective-C?
NSArray
is your standard array structure.
NSDictionary
A key-value "hash map"
NSSet
is an anonymous collection of unique objects.
Each of these is irreversible (i.e., when you create them, you can not change them). If you need to modify them dynamically, you will use their unstable subclasses: NSMutableArray
, NSMutableSet
, etc.
For structures beyond this, check out the CHDTA structure framework, in which the queue, heap, trees, traps and so many things are:
Comments
Post a Comment