如何根据正确书写的国家名称提取CLRegion
或或纬度/经度点?CLLocationCoordinate2D
会CLGeocoder
这样工作:
CLGeocoder *geoCode = [[CLGeocoder alloc] init];
[geoCode geocodeAddressString:@"Singapore" completionHandler:^(NSArray *placemarks, NSError *error) {
if (!error) {
CLPlacemark *place = [placemarks objectAtIndex:0];
NSLog(@"%i,%i", place.//what would i put here);
}
}];
什么变量CLPlacemark
告诉地址?