Instance Method

initWithLocaleIdentifier:

Initializes a locale using a given locale identifier.

Declaration

- (instancetype)initWithLocaleIdentifier:(NSString *)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

+ localeWithLocaleIdentifier:

Returns a locale initialized using the given locale identifier.

- initWithCoder:

Returns a locale initialized from data in the given unarchiver.