Creates a dictionary containing entries constructed from the contents of an array of keys and an array of values.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
An array containing the values for the new dictionary.
An array containing the keys for the new dictionary. Each key is copied (using
copy; keys must conform to the
NSCopyingprotocol), and the copy is added to the dictionary.
A new dictionary containing entries constructed from the contents of
This method steps through the
keys arrays, creating entries in the new dictionary as it goes. An
NSInvalid is raised if objects and keys don’t have the same number of elements.