高洛峰2017-04-17 17:34:21
else
{
if ([personInfo.district isEqualToString:@"0"]||[personInfo.district isEqualToString:@""]) {
CD_StateRegional *stateDistrict = [CD_StateRegional MR_findFirstWithPredicate:[NSPredicate predicateWithFormat:@"city_code = %@",personInfo.city]];
labProvince.text = [NSString stringWithFormat:@"%@ %@",stateDistrict.province_name,stateDistrict.city_name];
}
else
{
CD_StateRegional *stateDistrict = [CD_StateRegional MR_findFirstWithPredicate:[NSPredicate predicateWithFormat:@"district_code = %@",personInfo.district]];
labProvince.text = [NSString stringWithFormat:@"%@ %@ %@",stateDistrict.province_name,stateDistrict.city_name,stateDistrict.district_name];
}
}
ringa_lee2017-04-17 17:34:21
It depends on how the functions related to the regional control you are using are implemented. It is possible that 14 corresponds to Shanxi, 10 corresponds to Linfen, and 31 corresponds to X County.