-(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];
};
}-
Notifications
You must be signed in to change notification settings - Fork 0
justqi/DQPlacePick
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
