在iOS虚拟机上使CLPlacemark获取中文信息
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations{ CLLocation *location = locations[0]; CLGeocoder *geocoder = [[CLGeocoder alloc]init]; // 保存 Device 的现语言 (英语 法语 ,,,) NSMutableArray *userDefaultLanguages = [[NSUserDefaults standardUserDefaults] objectForKey:@"AppleLanguages"]; // 强制 成 简体中文 [[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObjects:@"zh-hans", nil nil] forKey:@"AppleLanguages"]; // 显示所有信息 [geocoder reverseGeocodeLocation:location completionHandler:^(NSArray *placemarks, NSError *error) { CLPlacemark * plmark = [placemarks objectAtIndex:0]; NSLog(@"%@",plmark.locality); }]; // 还原Device 的语言 [[NSUserDefaults standardUserDefaults] setObject:userDefaultLanguages forKey:@"AppleLanguages"]; }