高德地图反向解析的地址怎么是英文的!怎么转中文地址? ios6,用高德地图CLGeocoder反向解析的街道地址怎么是英文的!怎么把地址转中文名称?而不是什么zhonghua east road,能直接显示中华东路,求技术大神们指导! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我在附上我的代码:- (void)reverseGeocode:(CLLocation *)loction{ NSLog(@"is in reverseG"); if (!geocoder){ geocoder = [[CLGeocoder alloc] init]; } [geocoder reverseGeocodeLocation:loction completionHandler:^(NSArray* places,NSError* error){ if (nil != error) { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"error", @"eroor") message:NSLocalizedString(@"did not recognize", @"did not recognize") delegate:self cancelButtonTitle:NSLocalizedString(@"ok", @"ok") otherButtonTitles: nil]; [alert show]; } else if ([places count] > 0){ CLPlace *Place = [places objectAtIndex:0]; NSLog(@"%@,%@,%@,%@",Place.thoroughfare,Place.locality,Place.administrativeArea,Place.postalCode); _label.text = Place.thoroughfare; } }]; 请各位指导 这不是高德的解析啊,这是系统的解析,用高德给的API解析就是中文的 +1,高德的API里有 谢谢回复,我会去研究高德的api;这个问题我自己解决啦。 Iphone开发 splitView添加view 关于在XIB文件当中存在多个窗口的问题 怎样用ipad Simulator进行调试? 横竖屏转换以及一些小问题 关于iphone开发的框架 UITableViewCell 关于NSNumber iOS评论的时候发送表情符号怎么弄啊 UICollectionView显示图片排列不齐 用webview加载pdf iOS 10.1.1不支持pdf1.2版本 消息推送 IOS 读取数据库中的HTML格式内容不能正确解析
- (void)reverseGeocode:(CLLocation *)loction
{
NSLog(@"is in reverseG");
if (!geocoder){
geocoder = [[CLGeocoder alloc] init];
} [geocoder reverseGeocodeLocation:loction completionHandler:^(NSArray* places,NSError* error){
if (nil != error) {
UIAlertView *alert =
[[UIAlertView alloc]
initWithTitle:NSLocalizedString(@"error", @"eroor")
message:NSLocalizedString(@"did not recognize", @"did not recognize")
delegate:self cancelButtonTitle:NSLocalizedString(@"ok", @"ok")
otherButtonTitles: nil];
[alert show];
}
else if ([places count] > 0){
CLPlace *Place = [places objectAtIndex:0];
NSLog(@"%@,%@,%@,%@",Place.thoroughfare,Place.locality,Place.administrativeArea,Place.postalCode);
_label.text = Place.thoroughfare;
}
}];
请各位指导