Instance Method

enumerateKeysAndObjects(options:using:)

Applies a given block object to the entries of the dictionary, with options specifying how the enumeration is performed.

Declaration

func enumerateKeysAndObjects(options opts: NSEnumerationOptions = [], using block: (Any, Any, UnsafeMutablePointer<ObjCBool>) -> Void)

Parameters

opts

Enumeration options.

block

A block object to operate on entries in the dictionary.

Discussion

If the block sets *stop to true, the enumeration stops.

See Also

Enumerating Dictionaries

func keyEnumerator() -> NSEnumerator

Provides an enumerator to access the keys in the dictionary.

func objectEnumerator() -> NSEnumerator

Returns an enumerator object that lets you access each value in the dictionary.

func enumerateKeysAndObjects((Any, Any, UnsafeMutablePointer<ObjCBool>) -> Void)

Applies a given block object to the entries of the dictionary.

func makeIterator() -> NSDictionary.Iterator

Return an iterator over the elements of this sequence.

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