I want to detect the “automatic” language from the device .Basically , I want device language from settings programmatically.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found answer myself.
whenever I have to use particular language I used
NSArray *lang = [NSArray arrayWithObjects:@”en”, nil];
[[NSUserDefaults standardUserDefaults] setObject:lang forKey:@”AppleLanguages”];
& whenever I want to use device language from settings I used
[[NSUserDefaults standardUserDefaults] removeObjectForKey:@”AppleLanguages”];
It really worked.