Instance Method

removeObjectsForKeys:

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

Declaration

- (void)removeObjectsForKeys:(NSArray<KeyType> *)keyArray;

Parameters

keyArray

An array of objects specifying the keys to remove.

Discussion

If a key in keyArray does not exist, the entry is ignored.

See Also

Removing Entries From a Mutable Dictionary

- removeObjectForKey:

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

- removeAllObjects

Empties the dictionary of its entries.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software