I ran into something I don't understand. I have set a language selection for the application in the settings menu of the phone. I have the delegate method
- (void)defaultsChanged:(NSNotification *)notif
in my AppDelegate. I read the new parameter of the selected language and try to change the language with
[[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObjects:@"en", nil] forKey:@"AppleLanguages"];
Unfortunatly this line always gives me a EXC_BAD_ACCESS error. I don't understand why.
I tried different ways given on StackOverflow to change Localization at runtime but they only work for texts in the application. I also have images that are localized and they only updates when the language is changed in the NSUserDefaults.
I need some advices here.
Thank you !