首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Iphone >

ios定位的疑点

2012-12-14 
ios定位的疑问MKReverseGeocoder *geoCoder [[[MKReverseGeocoder alloc] initWithCoordinate:coordinat

ios定位的疑问
MKReverseGeocoder *geoCoder = [[[MKReverseGeocoder alloc] initWithCoordinate:coordinate2D] autorelease];
  geoCoder.delegate = self;
  [geoCoder start];


- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark
{
  NSString *local=placemark.locality;
  if (local) {
  NSString *address = [NSString stringWithFormat:@"%@ %@ %@ %@ %@%@", 
  placemark.country,
  placemark.administrativeArea,
  placemark.locality,
  placemark.subLocality,
  placemark.thoroughfare,
  placemark.subThoroughfare];
  NSLog(@"经纬度所对应的详细:%@", address);
  }
}


Q:为什么address取到的值都是拼音呢,而不是中文??比如说placemark.country得到的值是China,placemark.administrativeArea得到的值是guangdong。

热点排行