效果图
#使用:
-(LocationPickerView *)locationPickerView{
if (!_locationPickerView) {
_locationPickerView = [[LocationPickerView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
__weak typeof(self) wself = self;
_locationPickerView.completion = ^(NSString *provinceName,NSString *cityName,NSString *countyName) {
__strong typeof(wself) self = wself;
self.addressLabel.text = [NSString stringWithFormat:@"%@ %@ %@",provinceName,cityName,countyName];
};
[self.navigationController.view addSubview:_locationPickerView];
}
return _locationPickerView;
}
地址:[https://github.com/hejintaochenxin/HJTLocationPickerView.git]