Instance Method

removeAllObjects()

Empties the dictionary of its entries.

Declaration

func removeAllObjects()

Discussion

Each key and corresponding value object is sent a release message.

See Also

Removing Entries From a Mutable Dictionary

func removeObject(forKey: Any)

Removes a given key and its associated value from the dictionary.

func removeObjects(forKeys: [Any])

Removes from the dictionary entries specified by elements in a given array.