I am going to use these language changes as triggers in the code that I'm going to write.
For example:
if languageHasChanged() {
//do something
}
I am going to use these language changes as triggers in the code that I'm going to write.
For example:
if languageHasChanged() {
//do something
}
If
NSLocale.currentLocaleDidChangeNotification
is not available, you can store the actual Locale inapplicationWillTerminate
andapplicationWillEnterBackground
in a variable, and compare it to the locale inapplicationDidBecomeActive
.Register for the
NSLocale.currentLocaleDidChangeNotification
notification.