One Logo Pool Ball
Foundation · IOS API REFERENCE

NSDictionary.Iterator

class · iOS 8.0+ · SDK 27.1

final class Iterator

A class that you use to provide members of a dictionary, one-by-one.

Members (1)

method · iOS 8.0+

next

TypeScript
next(): ({ "key": unknown; "value": unknown }) | null
Swift declaration
final func next() -> (key: Any, value: Any)?

Returns the next key-value pair of a dictionary object as a tuple. If all key-value pairs have been iterated over, this method returns `nil`.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →