Type Method

localeWithLocaleIdentifier:

Returns a locale initialized using the given locale identifier.

Declaration

+ (instancetype)localeWithLocaleIdentifier:(NSString *)ident;

Parameters

string

The identifier for the new locale.

Return Value

The initialized locale.

See Also

Initializing a Locale

- initWithLocaleIdentifier:

Initializes a locale using a given locale identifier.

- initWithCoder:

Returns a locale initialized from data in the given unarchiver.

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