Type Method

dictionary

Creates an empty dictionary.

Declaration

+ (instancetype)dictionary;

Return Value

A new empty dictionary.

Discussion

This method is declared primarily for use with mutable subclasses of NSDictionary.

If you don’t want a temporary object, you can also create an empty dictionary using alloc and init.

See Also

Creating an Empty Dictionary

- init

Initializes a newly allocated dictionary.