开发者

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

  1. Grab the current language from standardDefaults
  2. Set the language to English ( [[NSUserDefaults standardUserDefaults] setObject: [NSArray arrayWithObjects:@"en", nil] forKey:@"AppleLanguages"];)
  3. Once the reverse geo coding is done, reset the language with the value grabbed in step 1

Is there any other sane way?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜