MKReverseGeocoder; Can i get the location only in english?
Hi there I am using corelocation in my app开发者_运维知识库 and everything works fine and well. Except that i would like to have mkreversecoder give me the location in english.
Some parts of my app are dependent on the location, where by, it grabs some data from the server based on the location. The problem here is mkreversecoder follows the phone's language when retrieving the country
So australia becomes 오스트 레일 리아
Is there anyway that i can force mkreversegeocoder to give me location only in english?
Thanks
For now i have chose this method
- Grab the current language from standardDefaults
- Set the language to English (
[[NSUserDefaults standardUserDefaults] setObject: [NSArray arrayWithObjects:@"en", nil] forKey:@"AppleLanguages"];
) - Once the reverse geo coding is done, reset the language with the value grabbed in step 1
Is there any other sane way?
精彩评论