When the text of the previous UIViewController in UINavigationController is too long, the UITabBarItem displays "Back"
In my app, I allow the user to change the language by the following code:
[[NSUserDefaults standardUserDefaults] setObject:locale forKey:@"locale"];
[[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObjects:locale, nil] forKey:@"AppleLanguages"];
[[NSUserDefaults standardUserDefaults] synchronize];
locale would be "en" or "es" etc.
I also add to my localizable files the back text. I see that when the user opens the app, it would display "back" according to the text in the localizable files. But if the user changes the language with the above code, he would need to restart the app for the changes in AppleLanguages bundle to work.
I need also for the text on the UIPickerController e.g. Remove
How could it be fixed so the user wouldn't need to restart the app after setting the locale?
@Dejel: use "TSLanguageManager" library it's change the localze text at the runtime you don't need to restart the app after setting the locale.
you can download example from below link:
https://github.com/tonisalae/TSLanguageManager
@Dejel: use "LanguagesManager" library it's change the localze text at the runtime you don't need to restart the app after setting the locale.
you can download example from below link:
https://www.cocoacontrols.com/controls/languagesmanager
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With