Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between NSLocale currentLocale vs autoupdatingCurrentLocale?

What's the difference between NSLocale currentLocale vs autoupdatingCurrentLocale? It's not obvious from reading the documentation.

like image 381
Boon Avatar asked Apr 02 '14 21:04

Boon


People also ask

What is Currentlocale?

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

What is NSLocale?

An object representing information about linguistic, cultural, and technological conventions that bridges to Locale ; use NSLocale when you need reference semantics or other Foundation-specific behavior.


1 Answers

When the user changes their system locale settings, the autoupdating one automatically updates to the new locale.

like image 172
Catfish_Man Avatar answered Sep 28 '22 19:09

Catfish_Man