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];
}];
网友评论