iOS自定义省市区(县)选择器

效果图

iOS自定义省市区(县)选择器_第1张图片
#使用:
-(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]

你可能感兴趣的:(iOS自定义省市区(县)选择器)