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.