通过地图获取地址信息,可搜索,简单的一个ViewController
AddressFromMapViewController *vc = [[AddressFromMapViewController alloc] init];
vc.selectedEvent = ^(CLLocationCoordinate2D coordinate, NSString *addressName, NSString *province, NSString *city, NSString *distract, NSString *address) {
//DLog(@"输出🍀 %@%@%@%@",province,city,distract,address);
//DLog(@"输出🍀 %@",address);
self.addressName.text = addressName;
self.aera.text = [NSString stringWithFormat:@"%@ | %@ | %@",province,city,distract];
self.address.text = address;
self.coordinate.text = [NSString stringWithFormat:@"%f\n%f",coordinate.latitude,coordinate.longitude];
};
[self.navigationController pushViewController:vc animated:YES];