项目介绍:
- _pickView = [[JHAddressPickView alloc] init];
- _pickView.hideWhenTapGrayView = YES;
- _pickView.columns = 2; // 省市二级选择
- //_pickView.columns = 3; // 省市区三级选择
- [_pickView showInView:self.view];
- // 选择结果
- {
- city = "北京市";
- cityCode = 110100;
- province = "北京";
- provinceCode = 110000;
- }
- {
- city = "北京市";
- cityCode = 110100;
- province = "北京";
- provinceCode = 110000;
- town = "东城区";
- townCode = 110101;
- }
复制代码
仓库地址:
https://github.com/xjh093/JHAddressPickView