标签:hvie ace info city 省市区 block href bubuko 地址
//可以选择到省市区、省市、省
-(void)btnClick:(UIButton *)button{ __weak typeof(self) weakSelf = self; PlacePickMainController *vc = [[PlacePickMainController alloc] init]; if (button.tag == 0) { vc.pickType = PlacePickTypeToCounty;//选择省-市-区 }else if (button.tag == 1){ vc.pickType = PlacePickTypeToCity;//选择省-市 }else{ vc.pickType = PlacePickTypeToProvince;//选择省 } [weakSelf.navigationController pushViewController:vc animated:YES]; __weak PlacePickMainController *weakVC = vc; weakVC.FinishDoneBlock = ^(NSString *selectAllStr, NSString *provinceID, NSString *cityID, NSString *countryID, NSString *holeInfoStr) { NSLog(@"%@---%@---%@----%@",provinceID,cityID,countryID,holeInfoStr); [button setTitle:holeInfoStr forState:UIControlStateNormal]; }; }
DEMO地址 https://github.com/justqi/DQPlacePick
标签:hvie ace info city 省市区 block href bubuko 地址
原文地址:https://www.cnblogs.com/justqi/p/8989970.html