好用的城市选择器
2019-01-14 本文已影响0人
从前车邮马慢
AreaSelectViewController *ctrl = [[AreaSelectViewController alloc] init];
[self.navigationController pushViewController:ctrl animated:YES];
__weak AreaSelectViewController *_ctrl = ctrl;
[ctrl setSelectedCityBlock:^(AreaModel * info) {
//获取城市名字
[self.cityName setTitle:info.areaName forState:UIControlStateNormal];
[_ctrl.navigationController popViewControllerAnimated:YES];
}];