Returns the number of key-value pairs in a dictionary.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Foundation
Declaration
CFIndex CFDictionaryGetCount(CFDictionary Ref theDict);
Parameters
theDict
The dictionary to examine.
Return Value
The number of number of key-value pairs in the
.