Type Property

autoupdatingCurrentLocale

A locale which tracks the user’s current preferences.

Declaration

@property(class, readonly, strong) NSLocale *autoupdatingCurrentLocale;

Discussion

The locale is formed from the settings for the current user’s chosen system locale overlaid with any custom settings the user has specified.

Use this property when you want a locale that always reflects the latest configuration settings. When the user changes settings, a locale instance obtained from this property alters its behavior to match. If you need to rely on a locale that does not change, use the locale given by the currentLocale property instead.

Although the locale obtained here automatically follows the latest region settings, it provides no indication when the settings change. To receive notification of locale changes, add your object as an observer of NSCurrentLocaleDidChangeNotification.

See Also

Getting the User's Locale

currentLocale

A locale representing the user's region settings at the time the property is read.

NSCurrentLocaleDidChangeNotification

A notification that indicates that the user’s locale changed.

systemLocale

A locale representing the generic root values with little localization.