NSMutableDictionary
NSMutableDictionary is a mutable collection class in the Foundation framework of Apple's Cocoa and Cocoa Touch platforms. It is the mutable counterpart to NSDictionary, enabling dynamic storage of key-value pairs where keys and values are objects. Keys must conform to NSCopying, since the dictionary copies keys; lookups are performed using isEqual: and hash.
Creation and basic usage: An NSMutableDictionary can be created with dictionary, dictionaryWithCapacity:, or initWithCapacity:. Objects are
Mutability and memory management: In Automatic Reference Counting (ARC), the dictionary holds strong references to keys
Swift interoperability: NSMutableDictionary is available in Swift via bridging to the native Dictionary type. In many
Thread safety and performance: NSMutableDictionary is not thread-safe for concurrent writes. Synchronization or serial queues are