Initializer

init(localeIdentifier:)

Initializes a locale using a given locale identifier.

Declaration

init(localeIdentifier string: String)

Parameters

string

The identifier for the new locale.

Return Value

The initialized locale.

Discussion

This method is the designated initializer for this class.

See Also

Initializing a Locale

init?(coder: NSCoder)

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