iOS language changer example app
A simple app that allows the user to change language in-app, independent of the device setting.
See http://createdineden.com/blog/2014/december/12/language-changer-in-app-language-selection-in-ios/ for the accompanying tutorial.
Make all files into INAppLanguageManager.h && INAppLanguageManager.m, make it more easy to use.
-
after didFinishLaunchingWithOptions, init the INAppLanguageManager with code
[INAppLanguageManager shareINAppLanguageManager];
-
register notification in where you want to change language, usually in UIViewController,ViewDidLoad methods with code
[self setIsRegisterINAppChangeLanguage:YES];
-
Implemente method
- (void)INAppLanguageChanged:(NSNotification *)noti,
In this method you could change localized string with
INAppLocalisedString(@"key",nil)