Creates a shared key set object for the specified keys.
- iOS 6.0+
- macOS 10.8+
- tvOS 9.0+
- watchOS 2.0+
- Mac Catalyst 13.0+Beta
The array of keys. If the parameter is nil, an exception is thrown. If the array of keys is empty, an empty key set is returned.
A shared key set object.
The array of
keys may contain duplicates which are quietly ignored. Duplicate hash values of the keys are quietly allowed, but may cause lower performance and increase memory usage.
Typically you would create a shared key set for a given set of keys once, before creating shared key dictionaries, and retain and save the result of this method for use with the
NSMutable class method