Instance Method


Returns the value of the component corresponding to the specified key.


- (id)objectForKey:(NSLocaleKey)key;



The component for which to return the corresponding value. For possible values, see NSLocaleKey.

Return Value

The object corresponding to key.

See Also

Accessing Locale Information by Key

- displayNameForKey:value:

Returns the display name for the given locale component value.


The keys used to access components of a locale.

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