Working with NSDictionary in Objective-C

The concept of Dictionaries are synonymous with most object-oriented languages, and Objective-C is no exception. Dictionaries via the class NSDictionary allow you to to use words and other sorts of objects as keys, and retrievable via the key of your choosing. For example, to create a dictionary, you do this:

Like NSMutableArray, there is an NSMutableDictionary, which allows you to add and remove dictionary items dynamically. It works the same way as you would with any other Mutable object, so read up on the references Apple have provided.