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.