I'm new in developing iOS app. So I've recently faced a problem with localization of my app. I would like to perform some actions in response to language change in system settings. To get language ID I use
[[NSLocale preferredLanguages] objectAtIndex:0];
in applicationDidFinishLaunchingWithOptions method. First time it returns language ID right (e.g. "en" for English). Then, I close my application (or send it to background) and change language to German. After that I restart my app, but instead of "de", it still returns "en". I think my app might probably store old settings somewhere... but where exactly? How to retrieve valid current value?